bbb-status/Dockerfile

22 lines
651 B
Docker
Raw Normal View History

2022-11-20 14:19:56 +01:00
# Python image.
# - https://docs.docker.com/language/python/build-images/
FROM python:3.10-slim-buster
2020-11-25 19:35:39 +01:00
WORKDIR /usr/src/
2022-11-20 14:19:56 +01:00
# 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 ./
2022-11-20 14:19:56 +01:00
RUN pip3 install --no-cache-dir -r requirements.txt
COPY src/ ./
RUN chmod +x langfingaz/main.py
2020-11-25 19:35:39 +01:00
2022-11-20 14:19:56 +01:00
ENTRYPOINT [ "python3", "./langfingaz/main.py" ]
CMD [ "log-verbose" ]