generated from devjudge/sb1.5.21R-j1.8-maven-in-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (20 loc) · 764 Bytes
/
Dockerfile
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
FROM maven:3.5.2-jdk-8-alpine AS MAVEN_TOOL_CHAIN
RUN apk add --update openssl
# Pre build commands
USER root
RUN wget https://codejudge-starter-repo-artifacts.s3.ap-south-1.amazonaws.com/backend-project/springboot/maven/1.5.x/pre-build.sh
RUN chmod 775 ./pre-build.sh
RUN sh pre-build.sh
COPY pom.xml /tmp/
COPY src /tmp/src/
WORKDIR /tmp/
EXPOSE 8080
# Build the app
RUN wget https://codejudge-starter-repo-artifacts.s3.ap-south-1.amazonaws.com/backend-project/springboot/maven/1.5.x/build.sh
RUN chmod 775 ./build.sh
RUN sh build.sh
# Add extra docker commands here (if any)...
# Run the app
RUN wget https://codejudge-starter-repo-artifacts.s3.ap-south-1.amazonaws.com/backend-project/springboot/maven/1.5.x/run.sh
RUN chmod 775 ./run.sh
CMD sh run.sh