14 lines
350 B
Docker
14 lines
350 B
Docker
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
|
|
COPY . /temp/prod/
|
|
RUN cd /temp/prod && bun run build
|
|
|
|
FROM nginx AS release
|
|
COPY --from=build /temp/prod/dist /usr/share/nginx/html |