Working with Dockerfile

This commit is contained in:
2021-02-17 17:51:01 +01:00
parent 7922b6bafe
commit 1bf7d97048
7 changed files with 26 additions and 15 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM node:15.8.0-alpine3.10
RUN mkdir -p /usr/src/artapi
WORKDIR /usr/src/artapi
COPY . /usr/src/artapi
RUN yarn install --production
RUN yarn build
EXPOSE 5555
COPY . .
WORKDIR /usr/src/artapi/build
CMD ["yarn", "start"]