-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (21 loc) · 799 Bytes
/
Dockerfile
File metadata and controls
31 lines (21 loc) · 799 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
FROM eclipse-temurin:22
WORKDIR /srv
ARG SKIP_FRONTEND=false
RUN apt update && apt -y install maven
COPY pom.xml pom.xml
COPY annotations/pom.xml annotations/pom.xml
COPY compiler/pom.xml compiler/pom.xml
COPY exttest/pom.xml exttest/pom.xml
COPY samples/pom.xml samples/pom.xml
COPY schemacode/pom.xml schemacode/pom.xml
COPY toolapp/pom.xml toolapp/pom.xml
COPY webapp/pom.xml webapp/pom.xml
RUN mvn dependency:go-offline
COPY . .
ENV SPRING_DATASOURCE_URL jdbc:postgresql://mindcode-db:5432/mindcode_development
ENV SPRING_DATASOURCE_USERNAME postgres
ENV SPRING_DATASOURCE_PASSWORD pg_password
# Skip tests because postgres is only available at runtime
RUN mvn clean package -Dmaven.test.skip -DskipFrontend=${SKIP_FRONTEND}
EXPOSE 8080
CMD java -jar webapp/target/mindcode-webapp.jar