The next-generation file converter. Open source, fully local* and free forever.
feat: add dockerfile & docker compose configuration (#1)
azure2a41c25037a2
diff --git a/.dockerignore b/.dockerignorenew file mode 100644index 0000000..fd73510--- /dev/null+++ b/.dockerignore@@ -0,0 +1,21 @@+node_modules/+.git/+build/+dist/+.svelte-kit/+.output/+.vercel/+.vscode/++LICENSE+README.md+Dockerfile+docker-compose.yml+.npmrc+.prettier*+.gitignore+.env.*+.env++.DS_Store+Thumbs.db\ No newline at end of filediff --git a/Dockerfile b/Dockerfilenew file mode 100644index 0000000..48ae773--- /dev/null+++ b/Dockerfile@@ -0,0 +1,27 @@+FROM oven/bun AS builder++WORKDIR /app++ARG PUB_HOSTNAME+ARG PUB_PLAUSIBLE_URL++ENV PUB_HOSTNAME=${PUB_HOSTNAME}+ENV PUB_PLAUSIBLE_URL=${PUB_PLAUSIBLE_URL}++COPY package.json ./++RUN bun install++COPY . ./++RUN bun run build++FROM oven/bun:alpine++WORKDIR /app++COPY --from=builder /app/build ./++EXPOSE 3000++CMD [ "bun", "run", "start" ]\ No newline at end of filediff --git a/docker-compose.yml b/docker-compose.ymlnew file mode 100644index 0000000..bd3476c--- /dev/null+++ b/docker-compose.yml@@ -0,0 +1,11 @@+services:+ vert:+ container_name: vert+ build:+ context: .+ args:+ PUB_HOSTNAME: "vert.sh"+ PUB_PLAUSIBLE_URL: "https://plausible.example.com"+ restart: unless-stopped+ ports:+ - 3000:3000\ No newline at end of file