Dockerfile, mslogin file

This commit is contained in:
Gabriel Simmer 2022-07-06 00:17:10 +01:00
parent 0395d174db
commit a4f2a930b9
3 changed files with 46 additions and 0 deletions

8
.dockerignore Normal file
View file

@ -0,0 +1,8 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

38
Dockerfile Normal file
View file

@ -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"]

BIN
src/lib/images/mslogin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB