pianello-web-app/frontend/Dockerfile
Alessio Davoli c9fb8fa385
Some checks failed
ci/woodpecker/push/build Pipeline failed
Do not check
2023-12-27 12:13:56 +01:00

20 lines
344 B
Docker

FROM git.webdeploy.it/webdeploy/yarn AS build
WORKDIR /usr
COPY package.json ./
COPY package-lock.json ./
RUN npm ci
COPY . ./
# RUN npm run check
RUN npm run build
FROM git.webdeploy.it/webdeploy/yarn
WORKDIR /app
COPY package.json ./
COPY package-lock.json ./
RUN npm ci
COPY --from=build /usr/build /app
EXPOSE 8000
CMD ["node", "/app"]