diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6635cf5 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,10 @@ +.DS_Store +node_modules +/build +/.svelte-kit +/package +.env +.env.* +!.env.example +vite.config.js.timestamp-* +vite.config.ts.timestamp-* diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b0380a8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM node:alpine AS builder +USER node + +COPY --chown=node \ + package.json package-lock.json \ + ./usr/web/ + +WORKDIR /usr/web/ +RUN npm ci + +COPY --chown=node \ + . /usr/web/ +RUN npm run build + +FROM sebp/lighttpd +COPY --from=builder /usr/web/build/ /var/www/localhost/htdocs/ \ No newline at end of file