fix: Dockerfile CMD path and chown for Docker proxy support
This commit is contained in:
@@ -19,8 +19,9 @@ COPY --from=builder /app/dist ./dist
|
|||||||
COPY data/database.db ./data/database.db
|
COPY data/database.db ./data/database.db
|
||||||
|
|
||||||
# Security: non-root user
|
# Security: non-root user
|
||||||
RUN addgroup -S nodejs && adduser -S nodejs -G nodejs
|
RUN addgroup -S nodejs && adduser -S nodejs -G nodejs \
|
||||||
|
&& chown -R nodejs:nodejs /app/data
|
||||||
USER nodejs
|
USER nodejs
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
CMD ["node", "dist/src/http-server.js"]
|
CMD ["node", "dist/http-server.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user