mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: add mongo init script, use root in app image
This commit is contained in:
1 parent
ec90c484b4
commit
c3030b22be
5 files changed
+28
-13
No files matched your search
@@ -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 .
|
||||
|
||||
Reference in new issue
Block a user