-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile.debug
More file actions
26 lines (20 loc) · 907 Bytes
/
Dockerfile.debug
File metadata and controls
26 lines (20 loc) · 907 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
25
26
FROM python:3.12.4-bookworm AS thatkitebot
# install system package dependencies
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y python3-dev gcc libfreeimage3 libwebp-dev libjpeg-turbo-progs git libffi-dev units imagemagick
# create venv
RUN python3 -m venv /app/thatkitebot-venv/
RUN /app/thatkitebot-venv/bin/pip3 install --upgrade pip Cython
RUN /app/thatkitebot-venv/bin/pip3 install setuptools debugpy
# download and install patched version of si-prefix
WORKDIR /tmp/
RUN git clone https://github.com/ThatRedKite/si-prefix.git
WORKDIR /tmp/si-prefix
RUN /app/thatkitebot-venv/bin/python setup.py build
RUN /app/thatkitebot-venv/bin/python setup.py install
WORKDIR /app/
# copy the bot stuff
COPY ./requirements.txt /tmp/requirements.txt
COPY ./thatkitebot /app/thatkitebot
# install python package dependencies
RUN /app/thatkitebot-venv/bin/pip3 install -r /tmp/requirements.txt