feat: add mongo init script, use root in app image

This commit is contained in:
wancat committed 2023-07-31 17:19:03 +08:00
1 parent ec90c484b4
commit c3030b22be
5 files changed
+28 -13

No files matched your search

-6
View File
@@ -5,14 +5,8 @@ COPY package.json yarn.lock ./
COPY server/package.json ./server/
RUN yarn install --frozen-lockfile --production
ARG DOCKER_GID=140
RUN groupadd -g $DOCKER_GID docker && usermod -aG docker node
WORKDIR /app/server
USER node
COPY server/src ./src
COPY server/quests ./quests
COPY server/swagger.yaml .