-
-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 702 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.13-alpine3.21
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV TZ=Europe/Prague
# cairo - /room - for generating images
# git - setting bot presence and it's commit
# openssh - ios cog & merlin access
RUN apk update && apk add git cairo openssh
# lxml python library dependencies
RUN apk add libxml2-dev libxslt-dev python3-dev
VOLUME /rubbergod
WORKDIR /rubbergod
RUN /usr/local/bin/python -m pip install --upgrade pip
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY . .
RUN git config --global --add safe.directory /rubbergod
ENTRYPOINT [ "python3", "main.py" ]