revert: docker permission

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2022-07-13 23:20:07 +08:00
parent b86e95a8e9
commit d4cf34666a
2 changed files with 1 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ services:
- TZ=Asia/Shanghai
- NODE_ENV=production
volumes:
- ./data/mx-space:/home/mx/.mx-space
- ./data/mx-space:/root/.mx-space
ports:
- '2333:2333'
depends_on:

View File

@@ -11,16 +11,11 @@ RUN node scripts/download-latest-admin-assets.js
FROM node:16-alpine
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 mx
RUN apk add zip unzip mongodb-tools bash fish rsync jq --no-cache
WORKDIR /app
COPY --from=builder /app/out .
COPY --from=builder /app/assets ./assets
ENV TZ=Asia/Shanghai
USER mx
EXPOSE 2333
CMD echo "MixSpace Sever Image." && sh