diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c7a5cdf --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +.astro +.git +dist +node_modules +npm-debug.log* +.DS_Store diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5ab6108 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM node:24-alpine AS build + +WORKDIR /app + +COPY package*.json ./ +RUN npm ci + +COPY . . +RUN npm run build + +FROM nginx:1.29-alpine + +COPY --from=build /app/dist /usr/share/nginx/html + +EXPOSE 80