diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..a6e8960 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +.git +.github +.nuxt +.output +node_modules +package-lock.json \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..79aea10 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM alpine:3.20 + +WORKDIR /app +COPY . . + +RUN apk add --update nodejs npm +RUN npm install --global serve + +RUN npm install +RUN npm run generate + +CMD ["npx", "serve", "-s", "./.output/public"] \ No newline at end of file