diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f4401a3 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +.DS_Store +node_modules +/build +/.svelte-kit +/package +.env +.env.* +!.env.example diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..878c63a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,38 @@ +# stage build +FROM node:16-alpine + +WORKDIR /app + +# copy everything to the container +COPY . . + +# clean install all dependencies +RUN npm ci + +# remove potential security issues +RUN npm audit fix + +# build SvelteKit app +RUN npm run build + + +# stage run +FROM node:16-alpine + +WORKDIR /app + +# copy dependency list +COPY --from=0 /app/package*.json ./ + +# clean install dependencies, no devDependencies, no prepare script +RUN npm ci --production --ignore-scripts + +# remove potential security issues +RUN npm audit fix + +# copy built SvelteKit app to /app +COPY --from=0 /app/build ./ +COPY --from=0 /app/static ./static + +EXPOSE 3000 +CMD ["node", "./index.js"] \ No newline at end of file diff --git a/src/lib/images/mslogin.png b/src/lib/images/mslogin.png new file mode 100644 index 0000000..dbe5900 Binary files /dev/null and b/src/lib/images/mslogin.png differ