Files
linux-odyssey/server/Dockerfile.dev
T
wancat 9aa9367f9e refactor: move quests out of server
+ move quests from server/quests to ./quests
+ add frontend image in docker compose development
2023-08-22 11:48:44 +08:00

19 lines
283 B
Docker

FROM node
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" ]