mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-12-27 15:30:49 +05:30
18 lines
203 B
Docker
18 lines
203 B
Docker
FROM node:19-alpine
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package.json ./
|
|
COPY pnpm-lock.yaml ./
|
|
|
|
RUN npm install -g pnpm
|
|
|
|
RUN pnpm i
|
|
|
|
COPY . .
|
|
|
|
RUN pnpm build
|
|
|
|
EXPOSE 80
|
|
|
|
CMD [ "pnpm", "preview", "--port", "80" ] |