experimental docker user support
This commit is contained in:
parent
06de8dd532
commit
d876454638
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue