22 lines
439 B
Docker
22 lines
439 B
Docker
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"]
|