Skip to content

Commit

Permalink
fix: copy webapp assets to the right location (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
rauno56 committed Jun 20, 2024
1 parent c42e668 commit 065d272
Show file tree
Hide file tree
Showing 23 changed files with 7 additions and 53 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
frontend/src/main/resources/static/
frontend/src/main/resources/static/404.html
*/dist/
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
src/main/resources/static/**

### STS ###
.apt_generated
Expand Down
11 changes: 5 additions & 6 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@ FROM node:20-alpine as fe-build
USER node
WORKDIR /home/node
COPY webapp/package* webapp/yarn.lock /home/node/
RUN ls -lah . && yarn

RUN yarn
COPY webapp /home/node/
RUN ls -lah . && yarn build
RUN yarn build

FROM maven:3.8.5-openjdk-17 AS build
COPY src /home/app/src
COPY --from=fe-build /home/node/out/* /home/app/src/main/resources/static/
COPY --from=fe-build /home/node/out /home/app/src/main/resources/static
COPY pom.xml /home/app
RUN mvn -f /home/app/pom.xml clean package
RUN mvn -f /home/app/pom.xml --no-transfer-progress clean package

FROM eclipse-temurin:17-jre-jammy
COPY --from=build /home/app/target/*.jar /app/frontend.jar
USER 15000
# USER 15000
CMD ["java", "-jar", "/app/frontend.jar"]

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed frontend/src/main/resources/static/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions frontend/src/main/resources/static/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Webapp is not build
1 change: 0 additions & 1 deletion frontend/src/main/resources/static/next.svg

This file was deleted.

1 change: 0 additions & 1 deletion frontend/src/main/resources/static/vercel.svg

This file was deleted.

0 comments on commit 065d272

Please sign in to comment.