diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e6271da --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM docker.io/oven/bun + +RUN mkdir /shortener +WORKDIR /shortener + +COPY ./package.json ./ +COPY ./bun.lockb ./ + +RUN bun install --production + +COPY . . + +RUN bun run build + +EXPOSE 3000 + +ENTRYPOINT [ "bun", "./build/index.js"] \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 2d2d60f..5341896 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index fbadbcd..21551b5 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "prettier": "^2.8.0", "prettier-plugin-svelte": "^2.10.1", "svelte": "^4.0.5", + "svelte-adapter-bun": "^0.5.1", "svelte-check": "^3.4.3", "tailwindcss": "^3.3.2", "tslib": "^2.4.1", diff --git a/svelte.config.js b/svelte.config.js index cf464a5..d1e7e21 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,4 +1,4 @@ -import adapter from '@sveltejs/adapter-auto'; +import adapter from 'svelte-adapter-bun'; import { vitePreprocess } from '@sveltejs/kit/vite'; /** @type {import('@sveltejs/kit').Config} */