Compare commits
1 commit
39164401e6
...
89959bd718
Author | SHA1 | Date | |
---|---|---|---|
89959bd718 |
1 changed files with 8 additions and 5 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,24 +1,27 @@
|
||||||
|
# syntax=docker/dockerfile:1.7-labs
|
||||||
FROM node:22 AS fe-build
|
FROM node:22 AS fe-build
|
||||||
|
|
||||||
RUN mkdir /mnt/workspace
|
RUN mkdir /mnt/workspace
|
||||||
WORKDIR /mnt/workspace
|
WORKDIR /mnt/workspace
|
||||||
|
RUN cd /mnt/workspace
|
||||||
|
|
||||||
COPY ./frontend /mnt/workspace
|
COPY ./frontend /mnt/workspace
|
||||||
|
|
||||||
RUN npm install --global pnpm \
|
RUN npm install --global pnpm \
|
||||||
&& pnpm install \
|
&& pnpm install \
|
||||||
&& pnpm run build \
|
&& pnpm run build
|
||||||
|
|
||||||
FROM gradle AS be-build
|
FROM gradle AS be-build
|
||||||
|
|
||||||
RUN mkdir /mnt/workspace
|
RUN mkdir /mnt/workspace
|
||||||
WORKDIR /mnt/workspace
|
WORKDIR /mnt/workspace
|
||||||
|
RUN cd /mnt/workspace
|
||||||
|
|
||||||
COPY --exclude=./frontend . ./mnt/workspace
|
COPY --exclude=./frontend . /mnt/workspace
|
||||||
|
|
||||||
RUN ./gradlew -x test build
|
RUN ./gradlew build -x test
|
||||||
|
|
||||||
FROM eclipse-temurin:21-jre-nanoserver
|
FROM eclipse-temurin:21-jre-alpine
|
||||||
|
|
||||||
ENV USE_SYSTEM_CA_CERTS=1
|
ENV USE_SYSTEM_CA_CERTS=1
|
||||||
|
|
||||||
|
@ -28,4 +31,4 @@ WORKDIR /opt/home-cert-assistant
|
||||||
COPY --from=fe-build /mnt/workspace/dist /opt/home-cert-assistant/frontend
|
COPY --from=fe-build /mnt/workspace/dist /opt/home-cert-assistant/frontend
|
||||||
COPY --from=be-build /mnt/workspace/build/home-cert-assistant-0.0.1-SNAPSHOT.jar /opt/home-cert-assistant/
|
COPY --from=be-build /mnt/workspace/build/home-cert-assistant-0.0.1-SNAPSHOT.jar /opt/home-cert-assistant/
|
||||||
|
|
||||||
CMD ["java", "-jar", "/opt/home-cert-assistant/.jar"]
|
CMD ["java", "-jar", "/opt/home-cert-assistant/home-cert-assistant-0.0.1-SNAPSHOT.jar"]
|
Loading…
Add table
Reference in a new issue