Skip to content

Commit

Permalink
chore(docker): small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bastienwirtz committed Nov 11, 2024
1 parent a666d7a commit 37091fa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FROM --platform=$BUILDPLATFORM node:22-alpine3.20 AS build-stage

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
RUN corepack use pnpm@9

RUN corepack enable && corepack use pnpm@9

WORKDIR /app

Expand All @@ -17,12 +17,12 @@ RUN pnpm build
# production stage
FROM alpine:3.20

ENV GID 1000
ENV UID 1000
ENV PORT 8080
ENV SUBFOLDER "/_"
ENV INIT_ASSETS 1
ENV IPV6_DISABLE 0
ENV GID=1000 \
UID=1000 \
PORT=8080 \
SUBFOLDER="/_" \
INIT_ASSETS=1 \
IPV6_DISABLE=0

RUN addgroup -S lighttpd -g ${GID} && adduser -D -S -u ${UID} lighttpd lighttpd && \
apk add -U --no-cache lighttpd
Expand Down

0 comments on commit 37091fa

Please sign in to comment.