Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM node:18-alpine

# Create app directory
WORKDIR /usr/src/app

# Set production environment
ENV NODE_ENV=production

# Install production dependencies (use yarn.lock if present)
COPY package.json yarn.lock ./
RUN npm install --production --no-audit --prefer-offline

# Copy application source
COPY . .

# Run as non-root user
RUN chown -R node:node /usr/src/app
USER node

# Default port (matches server.js fallback)
EXPOSE 8079

# Start command
CMD ["npm", "start"]