website/Dockerfile

18 lines
189 B
Docker
Raw Normal View History

2022-11-09 20:42:34 +02:00
FROM node:19-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-11-11 15:32:29 +02:00
CMD [ "pnpm", "preview" ]