fix(security): rate limiting, CORS restriction, tableName allowlist, non-root Docker, migration entrypoint, aria-live
This commit is contained in:
+4
-1
@@ -10,5 +10,8 @@ CMD ["npm", "run", "dev"]
|
||||
|
||||
FROM base AS prod
|
||||
COPY . .
|
||||
# Generate Prisma client in the production image
|
||||
RUN npx prisma generate
|
||||
CMD ["npm", "start"]
|
||||
# Run as non-root user
|
||||
USER node
|
||||
CMD ["node", "src/index.js"]
|
||||
|
||||
Reference in New Issue
Block a user