tjo.space/web/Dockerfile
Tine Jozelj 827d7dc743
Some checks failed
ci / docker (api) (push) Successful in 1m55s
ci / docker (web) (push) Failing after 2m16s
fix: dont run tsc
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/