-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 762 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This docker file should get executed to setup the local nexus server
FROM ubuntu
RUN apt-get update;
# add the git and wget utility
RUN apt install -y wget
RUN apt install -y git
# using openJDK because jdk installation requires account signOut/signIn, hence using openJDKs
RUN apt install -y openjdk-17-jre
# add a nexus user with specific credentials
RUN apt install -y curl
# make a directory /home/developer
WORKDIR /
RUN mkdir -p /home/developer
# changing working dir
WORKDIR /home/developer
# clone the repo from github
RUN git clone https://github.com/kesrishubham2510/library-pet.git
# navigate to the library-pet and execute the build
WORKDIR ./library-pet
RUN ./gradlew build
# change workDir and add user
ENTRYPOINT ["./gradlew","publish"]