Add Dockerfile
This commit is contained in:
parent
b552cb3553
commit
4862da7ea8
|
|
@ -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"
|
||||||
Loading…
Reference in New Issue