mirror of
https://codeberg.org/langfingaz/bbb-status
synced 2024-11-25 20:59:31 +01:00
22 lines
651 B
Docker
22 lines
651 B
Docker
# Python image.
|
|
# - https://docs.docker.com/language/python/build-images/
|
|
FROM python:3.10-slim-buster
|
|
|
|
WORKDIR /usr/src/
|
|
|
|
# Set timezone.
|
|
# - https://dev.to/0xbf/set-timezone-in-your-docker-image-d22
|
|
# Official Debian and Ubuntu images automatically run apt-get clean, so explicit invocation is not required.
|
|
# - https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
|
|
RUN apt update && apt install tzdata -y
|
|
ENV TZ="Europe/Berlin"
|
|
|
|
COPY requirements.txt ./
|
|
RUN pip3 install --no-cache-dir -r requirements.txt
|
|
|
|
COPY src/ ./
|
|
RUN chmod +x langfingaz/main.py
|
|
|
|
ENTRYPOINT [ "python3", "./langfingaz/main.py" ]
|
|
CMD [ "log-verbose" ]
|