persistent-gallery / Dockerfile
victor's picture
victor HF staff
init
63caaa6
raw
history blame
444 Bytes
# Use the official Node.js image as the base image
FROM node:14
# Set the working directory inside the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install the dependencies
RUN npm install
# Copy the rest of the application code to the working directory
COPY . .
# Expose the port the app will run on
EXPOSE 3000
# Start the application
CMD [ "node", "app.js" ]