experimental docker user support

pull/156/head
Ben Phelps 2 years ago
parent 06de8dd532
commit d876454638

@ -9,7 +9,7 @@ COPY --link package.json pnpm-lock.yaml* ./
RUN <<EOF RUN <<EOF
set -xe set -xe
apk add libc6-compat apk add libc6-compat tzdata
apk add --virtual .gyp python3 make g++ apk add --virtual .gyp python3 make g++
yarn global add pnpm yarn global add pnpm
EOF EOF
@ -42,7 +42,11 @@ LABEL org.opencontainers.image.source='https://github.com/benphelps/homepage'
LABEL org.opencontainers.image.licenses='Apache-2.0' LABEL org.opencontainers.image.licenses='Apache-2.0'
ENV NODE_ENV production ENV NODE_ENV production
ENV PUID 0
ENV PGID 0
ENV TZ Europe/London
USER $PUID:$PGID
WORKDIR /app WORKDIR /app
# Copy files from context (this allows the files to copy before the builder stage is done). # Copy files from context (this allows the files to copy before the builder stage is done).

Loading…
Cancel
Save