Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
FROM node:18.7-alpine AS build
FROM node:18.7.0-alpine3.18 AS build

WORKDIR /usr/src/app
COPY package.json package-lock.json ./

RUN apk add --upgrade python3 build-base \
&& npm install
&& npm install
COPY . .
RUN npm run build

FROM wurstbrot/dsomm-yaml-generation as yaml
# dsomm-yaml-generation 1.15.3 is a release (not built everyday as 1.16.0)
FROM wurstbrot/dsomm-yaml-generation:1.15.3 as yaml

FROM caddy
# Caddt v2.10.0 is latest release
FROM caddy:2.10.0
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"]
COPY --from=yaml ["/var/www/html/src/assets/YAML/generated/generated.yaml", "/srv/assets/YAML/generated/generated.yaml"]