add files for hosting with docker

This commit is contained in:
Tobias Nauen
2026-03-06 09:06:56 +01:00
parent a527f7aaf2
commit 6d7629705a
3 changed files with 87 additions and 0 deletions

21
Dockerfile.updater Normal file
View File

@@ -0,0 +1,21 @@
FROM alpine:latest
RUN apk add --no-cache git docker-cli curl
WORKDIR /app
# Clone the repo
RUN git clone https://git.nauen-it.de/tobias/Pokemon-Type-Quiz.git .
# Install node and npm
RUN apk add --no-cache nodejs npm
# Install dependencies and build
RUN npm install && npm run build
# Script to rebuild on changes
COPY rebuild_docker.sh /rebuild_docker.sh
RUN chmod +x /rebuild_docker.sh
# Initial build
CMD ["/rebuild_docker.sh"]