Files
prind/docker/laserweb/Dockerfile
renovate[bot] 54fd29cf52 chore(deps): update debian docker tag to v13 (#250)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-08 20:02:28 +01:00

20 lines
458 B
Docker

FROM --platform=$BUILDPLATFORM node:22-trixie AS build
ARG REPO=https://github.com/ssendev/LaserWeb4
ARG VERSION=v4.1
WORKDIR /opt
RUN git clone ${REPO} laserweb \
&& cd laserweb \
&& git checkout ${VERSION} \
&& git submodule init \
&& git submodule update
WORKDIR /opt/laserweb
RUN npm ci --force
RUN npm run bundle-prod
FROM nginx:alpine AS run
COPY --from=build /opt/laserweb/dist /usr/share/nginx/html
RUN chown -R nginx:nginx /usr/share/nginx/html