chore(docker): small cleanup

pull/826/head
Bastien Wirtz 2024-11-11 17:17:11 +01:00
parent a666d7aa93
commit 37091fa3d9
1 changed files with 8 additions and 8 deletions

View File

@ -3,8 +3,8 @@ FROM --platform=$BUILDPLATFORM node:22-alpine3.20 AS build-stage
ENV PNPM_HOME="/pnpm" ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH" ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
RUN corepack use pnpm@9 RUN corepack enable && corepack use pnpm@9
WORKDIR /app WORKDIR /app
@ -17,12 +17,12 @@ RUN pnpm build
# production stage # production stage
FROM alpine:3.20 FROM alpine:3.20
ENV GID 1000 ENV GID=1000 \
ENV UID 1000 UID=1000 \
ENV PORT 8080 PORT=8080 \
ENV SUBFOLDER "/_" SUBFOLDER="/_" \
ENV INIT_ASSETS 1 INIT_ASSETS=1 \
ENV IPV6_DISABLE 0 IPV6_DISABLE=0
RUN addgroup -S lighttpd -g ${GID} && adduser -D -S -u ${UID} lighttpd lighttpd && \ RUN addgroup -S lighttpd -g ${GID} && adduser -D -S -u ${UID} lighttpd lighttpd && \
apk add -U --no-cache lighttpd apk add -U --no-cache lighttpd