diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..cb6806d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +.svelte-kit +node_modules +.env +.env.example +.gitignore +.npmrc +.prettierignore +.prettierrc +README.md \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b2fca9b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM node:lts-alpine AS base + +WORKDIR /usr/src/app + +FROM base AS build + +RUN yarn install +RUN yarn build + +FROM base AS app + +COPY --from=build build/* . + +USER app +EXPOSE 3000/tcp +ENTRYPOINT [ "node", "index.js" ] +