Add Dockerfile

This commit is contained in:
Guillaume Dorce 2023-02-19 18:30:15 +00:00
parent b552cb3553
commit 4862da7ea8
1 changed files with 21 additions and 0 deletions

21
Dockerfile Normal file
View File

@ -0,0 +1,21 @@
FROM node:lts-erbium
ENV PORT 19080
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Installing dependencies
COPY package*.json /usr/src/app/
RUN npm install
# Copying source files
COPY . /usr/src/app
# Building app
RUN npm run build
EXPOSE 19080
# Running the app
CMD "npm" "start"