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,15 @@
node_modules
Dockerfile*
docker-compose*
.dockerignore
.git
.gitignore
README.md
LICENSE
.vscode
Makefile
helm-charts
.env
.editorconfig
.idea
coverage*

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

Binary file not shown.

View file

@ -25,5 +25,8 @@
"hls.js": "^1.5.13",
"unocss": "^0.61.3",
"vite-plugin-singlefile": "^2.0.2"
}
},
"trustedDependencies": [
"svelte-preprocess"
]
}