diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..da6cc6f --- /dev/null +++ b/.dockerignore @@ -0,0 +1,10 @@ +.git +node_modules +.eslint* +.prettier* +.git* +.vscode +Containerfile* +public +.svelte-kit +build diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..eb76a83 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM docker.io/node:20.15.0-alpine AS builder + +WORKDIR /app +COPY package.json package-lock.json ./ +RUN npm ci + +COPY . . + +RUN npm run build + + +FROM docker.io/node:20.5.0-alpine + +WORKDIR /app +COPY package.json package-lock.json ./ +RUN npm ci --omit dev +COPY --from=builder /app/build /app +EXPOSE 3000 + +CMD ["node", "."] diff --git a/src/components/molecules/Image.svelte b/src/components/molecules/Image.svelte index 822efc7..596b862 100644 --- a/src/components/molecules/Image.svelte +++ b/src/components/molecules/Image.svelte @@ -19,7 +19,7 @@
{#each imageData.formats as format} - + {/each}