usar bun install + sitio container

This commit is contained in:
Cat /dev/Nulo 2023-12-24 17:57:45 -03:00
parent f5cc28f44b
commit f2f5c7afdd
5 changed files with 23 additions and 8 deletions

BIN
bun.lockb Executable file

Binary file not shown.

11
package.json Normal file
View file

@ -0,0 +1,11 @@
{
"name": "preciazo",
"private": true,
"workspaces": [
"dia-link-scraper",
"coto-link-scraper",
"scraper",
"sitio",
"db-datos"
]
}

View file

@ -1,6 +0,0 @@
packages:
- "dia-link-scraper"
- "coto-link-scraper"
- "scraper"
- "sitio"
- "db-datos"

10
sitio/Containerfile Normal file
View file

@ -0,0 +1,10 @@
FROM docker.io/oven/bun:1-alpine
COPY build/ .
RUN bun i
EXPOSE 3000
# https://github.com/gornostay25/svelte-adapter-bun/issues/39
ENV PROTOCOL_HEADER=x-forwarded-proto
ENV HOST_HEADER=x-forwarded-host
CMD ["bun", "run", "start"]

View file

@ -1,5 +1,5 @@
import adapter from "@sveltejs/adapter-node"; // import adapter from "@sveltejs/adapter-node";
// import adapter from "svelte-adapter-bun"; import adapter from "svelte-adapter-bun";
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */