diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..fe6a775 --- /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-* \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e8aa076 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM node:18 AS build-env +COPY . /app +WORKDIR /app + +RUN yarn +RUN yarn build + +FROM node:18 +COPY --from=build-env /app/build /app +WORKDIR /app +CMD ["index.js"] \ No newline at end of file