update docker instructions, fixes #278

This commit is contained in:
Aine
2025-01-18 09:21:58 +02:00
parent 0baf6ad94d
commit 9453490bca
4 changed files with 15 additions and 0 deletions

11
Dockerfile.build Normal file
View File

@@ -0,0 +1,11 @@
FROM node:lts AS builder
ARG BASE_PATH=./
WORKDIR /src
COPY . /src
RUN yarn config set enableTelemetry 0 && \
yarn install --immutable --network-timeout=300000 && \
yarn build --base=$BASE_PATH
FROM ghcr.io/static-web-server/static-web-server:2
ENV SERVER_ROOT=/app
COPY --from=builder /src/dist /app