mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-14 10:51:52 +01:00
Add Dockerfile
This commit is contained in:
6
.dockerignore
Normal file
6
.dockerignore
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
.git
|
||||||
|
.github
|
||||||
|
.nuxt
|
||||||
|
.output
|
||||||
|
node_modules
|
||||||
|
package-lock.json
|
||||||
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -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"]
|
||||||
Reference in New Issue
Block a user