mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
Merge pull request #16 from lancatlin/fix-dev-dockerfile
fix: dockerfile node access
This commit is contained in:
1 file changed
+1
-7
@@ -4,15 +4,9 @@ WORKDIR /app
|
|||||||
COPY server/package.json yarn.lock ./
|
COPY server/package.json yarn.lock ./
|
||||||
RUN yarn install --frozen-lockfile
|
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 NODE_ENV=development
|
||||||
ENV HOST=0.0.0.0
|
ENV HOST=0.0.0.0
|
||||||
ENV PORT=3000
|
ENV PORT=3000
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD [ "yarn", "dev" ]
|
CMD [ "yarn", "dev" ]
|
||||||
Reference in new issue
Block a user