notes/sandbox/docker_web_app/Dockerfile
2023-04-22 00:41:54 -07:00

19 lines
374 B
Docker

FROM node:18
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both apckage.json AND package-lock.json are
# copied where available (npm@5+)
COPY package*.json ./
RUN npm install
# If you are building your code for production
# RUN npm ci --omit=dev
# BUNDLE app source
COPY . .
EXPOSE 8080
CMD ["node", "server.js"]