18 lines
318 B
Text
18 lines
318 B
Text
|
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/
|
||
|
|