Fix frontend dev container permissions on macOS (#4465)
This commit is contained in:
parent
daf045af3f
commit
1d02320e4c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue