added docker files

This commit is contained in:
liyunze 2025-06-19 13:48:39 +10:00
parent 26b35110df
commit c006d72c4e
2 changed files with 19 additions and 0 deletions

3
.dockerignore Normal file
View file

@ -0,0 +1,3 @@
node_modules
dist
.astro

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM node:24-alpine3.21
WORKDIR /app
COPY package.json .
RUN npm install
RUN npm i -g serve
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["serve", "-s", "dist"]