mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: dockerfile node access
This commit is contained in:
1 parent
e417d442e7
commit
0d02b7e1d5
1 file changed
+1
-7
@@ -4,15 +4,9 @@ WORKDIR /app
|
||||
COPY server/package.json yarn.lock ./
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
ARG DOCKER_GID=140
|
||||
|
||||
RUN groupadd -g $DOCKER_GID docker && usermod -aG docker node
|
||||
|
||||
USER node
|
||||
|
||||
ENV NODE_ENV=development
|
||||
ENV HOST=0.0.0.0
|
||||
ENV PORT=3000
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "yarn", "dev" ]
|
||||
CMD [ "yarn", "dev" ]
|
||||
Reference in new issue
Block a user