tjo.space/web/Dockerfile

18 lines
318 B
Text
Raw Normal View History

2023-09-11 12:02:23 +00:00
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/