2023-05-31 20:43:04 +02:00
|
|
|
FROM node:18 AS build
|
2023-05-29 07:22:31 +02:00
|
|
|
|
2023-05-31 20:43:04 +02:00
|
|
|
WORKDIR /usr
|
|
|
|
COPY package.json ./
|
|
|
|
COPY yarn.lock ./
|
2023-08-23 14:59:28 +02:00
|
|
|
RUN yarn install --frozen-lockfile --registry http://172.17.0.2:4873
|
2023-05-31 20:43:04 +02:00
|
|
|
COPY . ./
|
|
|
|
RUN yarn build
|
|
|
|
|
2023-07-10 17:44:06 +02:00
|
|
|
FROM node:18-alpine3.16
|
2023-05-29 07:22:31 +02:00
|
|
|
|
2023-07-10 17:44:06 +02:00
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json ./
|
|
|
|
COPY yarn.lock ./
|
2023-08-23 14:54:59 +02:00
|
|
|
RUN yarn install --frozen-lockfile --registry http://172.17.0.2:4873
|
2023-07-10 17:44:06 +02:00
|
|
|
COPY --from=build /usr/build /app
|
2023-05-29 07:22:31 +02:00
|
|
|
|
2023-07-10 17:44:06 +02:00
|
|
|
EXPOSE 8000
|
2023-08-23 14:45:25 +02:00
|
|
|
CMD ["node", "/app"]
|