CyberCafe/Dockerfile

20 lines
308 B
Docker
Raw Normal View History

2025-12-25 14:52:41 -06:00
# Specify the base image
FROM node:24
# Set the working directory in the container
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install app dependencies
RUN npm install
# Bundle app source
COPY . .
# Expose port
EXPOSE 3000
# Start the app
CMD [ "node", "backend.js" ]