pianello-web-app/frontend/Dockerfile
apple 15bd322d23
All checks were successful
ci/woodpecker/push/build Pipeline was successful
add tmp proxy registry
2023-08-23 14:45:25 +02:00

20 lines
350 B
Docker

FROM node:18 AS build
WORKDIR /usr
COPY package.json ./
COPY yarn.lock ./
RUN yarn install
COPY . ./
RUN yarn build
FROM node:18-alpine3.16
WORKDIR /app
COPY package.json ./
COPY yarn.lock ./
RUN yarn config set registry http://172.17.0.2:4873
RUN yarn install --frozen-lockfile
COPY --from=build /usr/build /app
EXPOSE 8000
CMD ["node", "/app"]