Skip to content
Snippets Groups Projects
Commit dbdd7b4d authored by Anthony's avatar Anthony
Browse files

add Dockerfile

parent 8f767680
No related branches found
No related tags found
No related merge requests found
# From base image node
FROM node:16
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Copying all the files from your file system to container file system
COPY package.json .
# Install all dependencies
RUN npm install
# Copy other files too
COPY ./ .
# Expose the port
EXPOSE 3030
# Command to run app when intantiate an image
CMD ["npm","start"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment