tjo.space/web/Dockerfile
2023-09-11 14:12:18 +02:00

17 lines
318 B
Docker

FROM oven/bun as build
WORKDIR /app
ADD package.json package.json
ADD bun.lockb bun.lockb
RUN bun install
ADD . .
RUN bun run build
FROM nginx:stable as production
WORKDIR /app
# Copy what we've installed/built from production
COPY --chown=nobody:nogroup --from=build /home/node/app/build /usr/share/nginx/html/