2022-12-30 19:56:51 +02:00
|
|
|
FROM node:18-alpine
|
2022-08-27 19:38:41 +03:00
|
|
|
|
2022-11-09 20:42:34 +02:00
|
|
|
WORKDIR /usr/src/app
|
2022-08-27 19:38:41 +03:00
|
|
|
|
|
|
|
COPY package.json ./
|
2022-11-10 17:18:05 +02:00
|
|
|
COPY pnpm-lock.yaml ./
|
2022-11-09 20:42:34 +02:00
|
|
|
|
2022-11-10 17:18:05 +02:00
|
|
|
RUN npm install -g pnpm
|
|
|
|
|
|
|
|
RUN pnpm i
|
2022-11-09 20:42:34 +02:00
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2022-11-10 17:18:05 +02:00
|
|
|
RUN pnpm build
|
2022-11-09 20:42:34 +02:00
|
|
|
|
2022-11-11 15:32:29 +02:00
|
|
|
EXPOSE 4173
|
2022-11-09 20:42:34 +02:00
|
|
|
|
2022-12-31 20:25:09 +02:00
|
|
|
CMD ["pnpm", "preview", "--host"]
|