2022-11-26 08:46:39 +02:00
|
|
|
FROM node:18 AS build-env
|
|
|
|
COPY . /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN yarn
|
|
|
|
RUN yarn build
|
|
|
|
|
|
|
|
FROM node:18
|
|
|
|
COPY --from=build-env /app/build /app
|
2022-11-26 09:21:55 +02:00
|
|
|
COPY package.json /app/package.json
|
2022-11-26 08:46:39 +02:00
|
|
|
WORKDIR /app
|
2022-11-26 12:02:23 +02:00
|
|
|
env NODE_ENV=production
|
|
|
|
RUN yarn install --production
|
2022-11-26 08:46:39 +02:00
|
|
|
CMD ["index.js"]
|