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
-6
@@ -4,12 +4,6 @@ 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
|
||||||
|
|||||||
Reference in new issue
Block a user