SoundGas / Dockerfile
R-Kentaren's picture
Update Dockerfile
2925b0c verified
raw
history blame contribute delete
371 Bytes
# Use Node.js 20 base image instead of 16
FROM node:20-alpine
# Create app directory
WORKDIR /usr/src/app
# Update npm globally to version 11.4.2
RUN npm install -g npm@11.4.2
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY src/ ./src/
# Expose port
EXPOSE 3000
# Start the application
CMD ["npm", "start"]