2024-04-21 08:47:31 +00:00
|
|
|
FROM oven/bun:1 as install
|
2024-04-20 12:08:03 +00:00
|
|
|
RUN mkdir -p /temp/prod
|
|
|
|
COPY package.json bun.lockb /temp/prod/
|
2024-04-21 08:47:31 +00:00
|
|
|
RUN cd /temp/prod && bun install --frozen-lockfile
|
2024-04-20 12:08:03 +00:00
|
|
|
COPY . /temp/prod/
|
|
|
|
RUN cd /temp/prod && bun run build
|
2024-04-20 12:01:08 +00:00
|
|
|
|
|
|
|
FROM nginx AS release
|
2024-04-21 08:47:31 +00:00
|
|
|
COPY --from=install /temp/prod/dist /usr/share/nginx/html
|