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 17:24:14 +02:00
|
|
|
ENV PORT=4173
|
|
|
|
|
|
|
|
ENV ORIGIN=http://localhost:4173
|
|
|
|
|
|
|
|
CMD ["node", "build"]
|