add dockerfile

This commit is contained in:
2025-09-24 21:23:27 +02:00
parent cf44b5a285
commit 5a1ed0d0ca

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
# Build
FROM node:18-alpine AS build
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
RUN yarn build
# Serve
FROM nginx:stable-alpine AS runtime
COPY --from=build /app /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]