-
-
Notifications
You must be signed in to change notification settings - Fork 350
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (14 loc) · 595 Bytes
/
Dockerfile
File metadata and controls
20 lines (14 loc) · 595 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:24.7.0-alpine3.22 AS build
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN apk add --upgrade python3 build-base py3-setuptools py3-pip \
&& pip3 install --break-system-packages setuptools \
&& npm install
COPY . .
RUN npm run build --configuration=production
FROM wurstbrot/dsomm-yaml-generation:1.16.0 AS yaml
FROM caddy:2.10.2
ENV PORT=8080
COPY Caddyfile /etc/caddy/Caddyfile
COPY --from=build ["/usr/src/app/dist/dsomm/", "/srv"]
COPY --from=yaml ["/var/www/html/src/assets/YAML/generated/generated.yaml", "/srv/assets/YAML/generated/generated.yaml"]