add files for hosting with docker
This commit is contained in:
21
Dockerfile.updater
Normal file
21
Dockerfile.updater
Normal 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"]
|
||||
Reference in New Issue
Block a user