minesweeper-backend/Dockerfile
Jose134 d2909570a9
All checks were successful
gitea/minesweeper-backend/pipeline/head This commit looks good
First commit
2025-01-22 00:17:12 +01:00

20 lines
393 B
Docker

# Use the official Node.js image as the base image
FROM node:20
# Set the working directory
WORKDIR /usr/src/app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application code
COPY . .
# Expose the port the app runs on
EXPOSE 3001
# Command to run the application
CMD ["node", "index.js"]