content / Dockerfile
TDN-M's picture
Rename Dockerfile.txt to Dockerfile
6698a95 verified
raw
history blame contribute delete
303 Bytes
# Use the official Node.js image
FROM node:18
# Set working directory
WORKDIR /app
# Copy package.json and install dependencies
COPY package.json .
RUN npm install
# Copy the rest of the application
COPY . .
# Expose the port the app runs on
EXPOSE 8000
# Start the application
CMD ["npm", "start"]