forked from ProjectSegfault/website
22 lines
234 B
Docker
22 lines
234 B
Docker
FROM node:18-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 4173
|
|
|
|
ENV PORT=4173
|
|
|
|
ENV ORIGIN=http://localhost:4173
|
|
|
|
CMD ["node", "build"] |