alai-server/frontend/Dockerfile

12 lines
220 B
Docker
Raw Permalink Normal View History

2022-06-29 21:26:05 -04:00
FROM node:16-bullseye AS builder
WORKDIR /app
COPY . .
RUN yarn install
RUN yarn build
FROM node:16-bullseye
RUN yarn global add serve
WORKDIR /app
COPY --from=builder /app/dist .
CMD ["serve", "-p", "3000", "-s", "."]