ChatGLM / views /Dockerfile
y001j's picture
Upload 305 files
af9251e
raw
history blame contribute delete
308 Bytes
# build front-end
FROM node:lts-alpine AS frontend
RUN npm install pnpm -g
WORKDIR /app
COPY ./package.json /app
COPY ./pnpm-lock.yaml /app
RUN pnpm install
COPY . /app
RUN pnpm run build
FROM frontend AS final
COPY --from=frontend /app/dist /app/public
EXPOSE 3002
CMD ["pnpm", "run", "preview"]