Compare commits

...

3 commits

Author SHA1 Message Date
39164401e6
ci: Create Dockerfile to build a basic container image
All checks were successful
Build / build (pull_request) Successful in 1m0s
Check formatting / check-formatting (pull_request) Successful in 26s
2025-04-21 11:30:29 +02:00
7def9ba4f1
ci: Apply discovered options to formatting too 2025-04-21 11:05:00 +02:00
995ed5f8a2
ci: Remove no longer supported PR parameter 2025-04-21 11:04:21 +02:00
3 changed files with 36 additions and 2 deletions

View file

@ -28,5 +28,3 @@ jobs:
- uses: https://github.com/gradle/actions/setup-gradle@v4
- name: Build gradle project
run: ./gradlew build
env:
ORG_GRADLE_PROJECT_SPRING_DEBUG: ${{ fromJSON(steps.pr-env.outputs.result).SPRING_DEBUG }}

View file

@ -9,6 +9,11 @@ concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
env:
HTTP_PROXY: http://6.fsn1-1.forsaken-ashbirds.net:8888
HTTPS_PROXY: http://6.fsn1-1.forsaken-ashbirds.net:8888
GRADLE_OPTS: -Dhttp.proxyHost=6.fsn1-1.forsaken-ashbirds.net -Dhttp.proxyPort=8888 -Dhttps.proxyHost=6.fsn1-1.forsaken-ashbirds.net -Dhttps.proxyPort=8888
jobs:
check-formatting:
runs-on: ubuntu-24.04

31
Dockerfile Normal file
View file

@ -0,0 +1,31 @@
FROM node:22 AS fe-build
RUN mkdir /mnt/workspace
WORKDIR /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
COPY --exclude=./frontend . ./mnt/workspace
RUN ./gradlew -x test build
FROM eclipse-temurin:21-jre-nanoserver
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/.jar"]