Merge pull request #16 from lancatlin/fix-dev-dockerfile

fix: dockerfile node access
This commit is contained in:
Lin, Hung-Shin authored and GitHub committed 2023-08-23 23:06:07 +08:00
commit e5e6d58a6e
1 file changed
+1 -7
+1 -7
View File
@@ -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" ]