bot-image-moderation-fe/Dockerfile

14 lines
350 B
Docker
Raw Normal View History

2024-04-20 12:08:03 +00:00
FROM oven/bun:1 as base
FROM base as install
RUN mkdir -p /temp/prod
COPY package.json bun.lockb /temp/prod/
RUN cd /temp/prod && bun install --production --frozen-lockfile
FROM base as build
RUN mkdir -p /temp/prod
2024-04-20 12:08:03 +00:00
COPY . /temp/prod/
RUN cd /temp/prod && bun run build
FROM nginx AS release
2024-04-20 12:08:03 +00:00
COPY --from=build /temp/prod/dist /usr/share/nginx/html