Fix frontend dev container permissions on macOS (#4465)

This commit is contained in:
Vaalyn 2021-08-09 01:08:23 +02:00 committed by GitHub
parent daf045af3f
commit 1d02320e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,9 @@
FROM library/node:lts-alpine
RUN apk update \
&& apk add bash python make curl g++
&& apk add bash python make curl g++ shadow
RUN groupdel dialout
RUN mkdir -p /data/frontend/node_modules /data/resources/locale /data/web/static \
&& chown -R node:node /data
@ -12,10 +14,7 @@ RUN USER=node && \
chown root:root /usr/local/bin/fixuid && \
chmod 4755 /usr/local/bin/fixuid && \
mkdir -p /etc/fixuid && \
printf "user: $USER\ngroup: $GROUP\n" > /etc/fixuid/config.yml
COPY build_entrypoint.sh /
RUN chmod a+x /build_entrypoint.sh
printf "user: $USER\ngroup: $GROUP\npaths:\n - /\n - /data/frontend/node_modules\n" > /etc/fixuid/config.yml
# Define working directory.
WORKDIR /data/frontend