From 42c324532a23746359c95f9d1a5befae8927e620 Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 26 Dec 2023 15:22:38 -0300 Subject: [PATCH] traer DB en contenedor de sitio --- sitio/Containerfile | 3 +++ sitio/package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/sitio/Containerfile b/sitio/Containerfile index 151b905..53bf8e0 100644 --- a/sitio/Containerfile +++ b/sitio/Containerfile @@ -7,4 +7,7 @@ EXPOSE 3000 ENV PROTOCOL_HEADER=x-forwarded-proto ENV HOST_HEADER=x-forwarded-host +VOLUME /db +ENV DB_PATH=/db/db.db + CMD ["bun", "run", "start"] \ No newline at end of file diff --git a/sitio/package.json b/sitio/package.json index 689300c..ba41952 100644 --- a/sitio/package.json +++ b/sitio/package.json @@ -5,6 +5,7 @@ "scripts": { "dev": "vite dev", "build": "vite build", + "build:container": "bun --bun vite build && podman build -t gitea.nulo.in/nulo/preciazo/sitio .", "preview": "vite preview", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",