minesweeper-backend/Dockerfile
Jose134 f65878235b
Some checks failed
gitea/minesweeper-backend/pipeline/head There was a failure building this commit
First commit
2025-01-22 00:14:15 +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"]