diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..d9fc3fc --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +node_modules +.svelte-kit +build +.git +.env +.env.* +npm-debug.log* diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3154ab2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM node:22-alpine AS build + +WORKDIR /app + +COPY package*.json ./ +RUN npm ci + +COPY . . +RUN npm run build + +FROM nginx:1.27-alpine + +COPY --from=build /app/build /usr/share/nginx/html + +EXPOSE 80 diff --git a/captain-definition b/captain-definition new file mode 100644 index 0000000..0e14f82 --- /dev/null +++ b/captain-definition @@ -0,0 +1,4 @@ +{ + "schemaVersion": 2, + "dockerfilePath": "./Dockerfile" +}