Dockerfile, mslogin file
This commit is contained in:
parent
0395d174db
commit
a4f2a930b9
8
.dockerignore
Normal file
8
.dockerignore
Normal file
|
@ -0,0 +1,8 @@
|
|||
.DS_Store
|
||||
node_modules
|
||||
/build
|
||||
/.svelte-kit
|
||||
/package
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
38
Dockerfile
Normal file
38
Dockerfile
Normal 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
BIN
src/lib/images/mslogin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
Loading…
Reference in a new issue