-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.frontend
33 lines (24 loc) · 1007 Bytes
/
Dockerfile.frontend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# syntax=docker/dockerfile:1
FROM node:20 AS build
COPY --from=ghcr.io/vs-uulm/prepams/shared /prepams/shared/pkg /prepams/shared/pkg
WORKDIR /prepams/frontend/
COPY frontend/package*.json ./
RUN npm install
WORKDIR /prepams/evaluation/
COPY evaluation/package*.json ./
RUN npm install
WORKDIR /prepams/evaluation/
COPY evaluation .
RUN npm run build
WORKDIR /prepams/frontend/
COPY frontend .
RUN NODE_OPTIONS=--openssl-legacy-provider npm run build
FROM nginx:1.26-alpine
COPY --from=build /prepams/frontend/dist /usr/share/nginx/html
COPY --from=build /prepams/evaluation/dist /usr/share/nginx/html/eval
COPY frontend/default-nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
LABEL org.opencontainers.image.ref.name="ghcr.io/vs-uulm/prepams/frontend"
LABEL org.opencontainers.image.source="https://github.com/vs-uulm/prepams"
LABEL org.opencontainers.image.authors="Echo Meißner <[email protected]> (https://uni-ulm.de/in/vs/meissner)"
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"