fork dari fbrinker/docker-tileboard-OUTDATED
f46f79bd4e
* add `ARG` for `RELEASE_URL` * make `build.sh` prepare `.tags` even if tag exists * add outputs to be used by github workflows
19 baris
834 B
Docker
19 baris
834 B
Docker
FROM python:alpine
|
|
LABEL maintainer="mail+docker@f-brinker.de"
|
|
|
|
# Install wget
|
|
RUN apk update \
|
|
&& apk add ca-certificates wget unzip \
|
|
&& update-ca-certificates
|
|
|
|
# Download TileBoard
|
|
ARG RELEASE_URL
|
|
RUN wget -q -O release.zip "${RELEASE_URL:-%RELEASE_URL%}" \
|
|
&& unzip release.zip -d /tileboard/ \
|
|
&& rm release.zip
|
|
|
|
# Start Server
|
|
WORKDIR /tileboard
|
|
EXPOSE 8000
|
|
ENTRYPOINT python3 -m http.server
|