[dyad] wrote 5 file(s)

This commit is contained in:
Michael committed 2025-11-06 12:20:50 +01:00
1 parent 33b241f0c1
commit 5e6670d921
5 files changed
+218 -83

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
FROM node:20-alpine
# Create app directory
WORKDIR /app
# Install app dependencies
COPY package*.json ./
RUN npm install
# Bundle app source
COPY . .
# Create uploads directory
RUN mkdir -p public/uploads
# Create non-root user
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
RUN chown -R appuser:appgroup /app
USER appuser
EXPOSE 3000
CMD [ "node", "server.js" ]