2023-09-25 17:34:41 +02:00
|
|
|
FROM git.webdeploy.it/webdeploy/yarn AS build
|
2023-05-29 07:22:31 +02:00
|
|
|
|
2023-05-31 20:43:04 +02:00
|
|
|
WORKDIR /usr
|
2023-09-25 17:34:41 +02:00
|
|
|
COPY .yarnrc.yml ./
|
2023-05-31 20:43:04 +02:00
|
|
|
COPY package.json ./
|
|
|
|
COPY yarn.lock ./
|
2023-09-25 17:34:41 +02:00
|
|
|
RUN yarn install --immutable
|
2023-05-31 20:43:04 +02:00
|
|
|
COPY . ./
|
|
|
|
RUN yarn build
|
|
|
|
|
2023-09-25 17:34:41 +02:00
|
|
|
FROM git.webdeploy.it/webdeploy/yarn
|
2023-05-29 07:22:31 +02:00
|
|
|
|
2023-07-10 17:44:06 +02:00
|
|
|
WORKDIR /app
|
2023-09-25 17:34:41 +02:00
|
|
|
COPY .yarnrc.yml ./
|
2023-07-10 17:44:06 +02:00
|
|
|
COPY package.json ./
|
|
|
|
COPY yarn.lock ./
|
2023-09-25 17:34:41 +02:00
|
|
|
RUN yarn install --immutable
|
2023-09-11 10:02:17 +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"]
|