From 1b46acc6b94eea2a865994ba02d803f6fbad95cb Mon Sep 17 00:00:00 2001 From: christian Date: Fri, 26 Apr 2024 01:01:30 +0200 Subject: [PATCH] cannot figure out dockerfile --- Dockerfile | 4 ++-- svelte.config.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5ec9285..fc24076 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12 AS build +FROM node:21 AS build WORKDIR /app @@ -9,4 +9,4 @@ COPY . ./ RUN npm run build FROM nginx:1.19-alpine -COPY --from=build /app/public /usr/share/nginx/html \ No newline at end of file +COPY --from=build . \ No newline at end of file diff --git a/svelte.config.js b/svelte.config.js index 2bb82b6..29a8240 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,4 +1,4 @@ -import adapter from '@sveltejs/adapter-auto'; +import adapter from '@sveltejs/adapter-node'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; /** @type {import('@sveltejs/kit').Config} */