Visitor / Dockerfile
clone3's picture
Update Dockerfile
f179b0f verified
raw
history blame contribute delete
297 Bytes
# Use the official Node.js image
FROM node:18
# Set working directory inside the container
WORKDIR /app
# Copy package.json and install dependencies
COPY package*.json ./
RUN npm install
# Copy the rest of the app code
COPY . .
# Expose the port
EXPOSE 8080
# Run the app
CMD ["npm", "start"]