Browse Source

Dockerfile: Automatically build static files for Web UI

pull/937/head
Daniil Isakov 3 years ago
committed by Sergei Birukov
parent
commit
64001ddf73
  1. 3
      Dockerfile

3
Dockerfile

@ -15,7 +15,10 @@ RUN npm ci --omit=dev &&\
# This saves a lot of disk space.
FROM docker.io/library/node:20-alpine
HEALTHCHECK CMD /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1" --interval=1m --timeout=5s --retries=3
# Copy the server files and the built static files
COPY --from=build_node_modules /app /app
COPY --from=build_node_modules /webui/dist /app/www
# Move node_modules one directory up, so during development
# we don't have to mount it in a volume.

Loading…
Cancel
Save