-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from IV1201-Group-2/feature/docker
Add Dockerfile for building client
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM node:lts-alpine as clientstage | ||
WORKDIR /app | ||
COPY . . | ||
RUN npm install | ||
RUN npm run build | ||
|
||
FROM openjdk:17 as servicestage | ||
WORKDIR /service | ||
|
||
COPY service/mvnw . | ||
COPY service/.mvn .mvn | ||
COPY service/pom.xml . | ||
COPY service/src src | ||
COPY --from=clientstage /app/dist src/main/resources/static | ||
|
||
RUN ./mvnw package | ||
|
||
FROM openjdk:17 | ||
COPY --from=servicestage /service/target/client-service-0.0.1-SNAPSHOT.jar /app.jar | ||
CMD java -Dserver.port=$PORT -jar /app.jar |
This file was deleted.
Oops, something went wrong.
Empty file.