Files
chatgpt-ui/Dockerfile
2023-04-04 19:43:20 +08:00

26 lines
465 B
Docker

FROM node:18-alpine3.16 as builder
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install && yarn cache clean
COPY . .
RUN yarn build
FROM node:18-alpine3.16
ENV NITRO_PORT=80
WORKDIR /app
COPY --from=builder /app/.output/ .
EXPOSE 80
# TODO: You can use NITRO_PRESET=node_cluster in order to leverage multi-process performance using Node.js cluster module. https://nuxt.com/docs/getting-started/deployment
ENTRYPOINT ["node", "server/index.mjs"]