website / Dockerfile
theguywhosucks's picture
Upload 16 files
a7a3116 verified
raw
history blame contribute delete
293 Bytes
FROM node:20-alpine
# Set the working directory inside the container
WORKDIR /app
# Copy package files first (better for Docker caching)
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of your code (server.js, etc.)
COPY . .
# Run the app
CMD ["npm", "start"]