Better information extraction from x509 command (#20)
- Fixes some issues with IPv6-only build on Forgejo - Adds experimental Dockerfile for devemopment deployment Co-authored-by: Ghost <> Co-committed-by: Ghost <>
This commit is contained in:
parent
0cac57dd15
commit
2b640d7578
19 changed files with 2429 additions and 939 deletions
34
Dockerfile
Normal file
34
Dockerfile
Normal file
|
@ -0,0 +1,34 @@
|
|||
# syntax=docker/dockerfile:1.7-labs
|
||||
FROM node:22 AS fe-build
|
||||
|
||||
RUN mkdir /mnt/workspace
|
||||
WORKDIR /mnt/workspace
|
||||
RUN cd /mnt/workspace
|
||||
|
||||
COPY ./frontend /mnt/workspace
|
||||
|
||||
RUN npm install --global pnpm \
|
||||
&& pnpm install \
|
||||
&& pnpm run build
|
||||
|
||||
FROM gradle AS be-build
|
||||
|
||||
RUN mkdir /mnt/workspace
|
||||
WORKDIR /mnt/workspace
|
||||
RUN cd /mnt/workspace
|
||||
|
||||
COPY --exclude=./frontend . /mnt/workspace
|
||||
|
||||
RUN ./gradlew build -x test
|
||||
|
||||
FROM eclipse-temurin:21-jre-alpine
|
||||
|
||||
ENV USE_SYSTEM_CA_CERTS=1
|
||||
|
||||
RUN mkdir /opt/home-cert-assistant
|
||||
WORKDIR /opt/home-cert-assistant
|
||||
|
||||
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/
|
||||
|
||||
CMD ["java", "-jar", "/opt/home-cert-assistant/home-cert-assistant-0.0.1-SNAPSHOT.jar"]
|
Loading…
Add table
Add a link
Reference in a new issue