Start dockerizing OBS

This commit is contained in:
Micha Albert 2024-08-05 14:02:41 -04:00
parent 8308b22d89
commit af43bbc916
No known key found for this signature in database
GPG key ID: 33149159A417BBCE
10 changed files with 114 additions and 2 deletions

View file

@ -0,0 +1,16 @@
FROM docker.io/oven/bun:slim AS base
WORKDIR /usr/src/app
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lockb /temp/dev/
RUN cd /temp/dev && bun install
RUN mkdir -p /temp/prod
COPY package.json bun.lockb /temp/prod/
RUN cd /temp/prod && bun install --production
FROM base AS release
COPY --from=install /temp/dev/node_modules node_modules
COPY . .
RUN bun --bun run build