Working on Dockerfile

This commit is contained in:
2021-02-17 17:33:22 +01:00
parent 96453f90ce
commit 50234e54e7

View File

@@ -1,13 +1,16 @@
FROM node:14
EXPOSE 3333
FROM node:15.8.0-alpine3.10
RUN mkdir -p /usr/src/artsite
WORKDIR /usr/src/artsite
COPY package.json package.json
COPY . /usr/src/artsite
RUN yarn install
RUN yarn build
EXPOSE 3333
COPY . .
CMD ["yarn", "start"]