MangoShelf/Dockerfile

18 lines
526 B
Docker

# Use node as the "base" for our project
FROM node:17
# Create app directory
WORKDIR /usr/src/app
# Enviroment variables
# (https://docs.docker.com/engine/reference/builder/ go here and scroll down bla bla bla)
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
COPY package*.json ./
RUN npm i
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
COPY . .
# Expose port 3000
EXPOSE 3430
# Run it.
CMD [ "node", "index.js" ]