mywork / Dockerfile
DeeCeeXxx's picture
Update Dockerfile
944674c verified
# Use an official Node.js runtime as a parent image
FROM node:18-alpine
# Set the working directory
WORKDIR /app
# Copy package.json and package-lock.json
COPY package.json ./
# Copy the rest of the application
COPY . .
RUN npm install
# Expose the port
EXPOSE 3000
# Start the application
CMD ["node", "index.js"]