pianello-web-app/frontend/Dockerfile

21 lines
381 B
Docker

FROM git.webdeploy.it/webdeploy/yarn AS build
WORKDIR /usr
COPY .yarnrc.yml ./
COPY package.json ./
COPY yarn.lock ./
RUN yarn install --immutable
COPY . ./
RUN yarn build
FROM git.webdeploy.it/webdeploy/yarn
WORKDIR /app
COPY .yarnrc.yml ./
COPY package.json ./
COPY yarn.lock ./
RUN yarn install --immutable
COPY --from=build /usr/build /app
EXPOSE 8000
CMD ["node", "/app"]