Add Dockerfile for Node.js application

This commit is contained in:
gamvo74 2026-02-22 08:15:45 -05:00 committed by GitHub
parent 0a623e6d14
commit 04a0358dd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

19
.github/workflows/Dockerfile vendored Normal file
View File

@ -0,0 +1,19 @@
FROM node:18-alpine
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci --only=production
# Copy application code
COPY . .
# Build if needed
RUN npm run build --if-present
EXPOSE 3000
CMD ["npm", "start"]