fix: create uploads dir with correct ownership before dropping to app user
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
d9062ce754
commit
40e378bff8
@@ -22,6 +22,7 @@ COPY --from=builder /app/deploy/node_modules ./node_modules
|
||||
COPY --from=builder /app/apps/api/dist ./dist
|
||||
COPY --from=builder /app/apps/api/package.json ./
|
||||
COPY --from=builder /app/packages/database ./packages/database
|
||||
RUN mkdir -p /app/uploads && chown -R app:app /app
|
||||
USER app
|
||||
EXPOSE 3001
|
||||
CMD ["node", "dist/main.js"]
|
||||
|
||||
Reference in New Issue
Block a user