-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (38 loc) · 1.52 KB
/
Dockerfile
File metadata and controls
47 lines (38 loc) · 1.52 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM python:3.14.0b1-bookworm
LABEL maintainer="email@miklos-szel.com"
# Set non-interactive frontend
ENV DEBIAN_FRONTEND=noninteractive
COPY ./requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip3 install -r requirements.txt
COPY . /app
RUN cp /app/misc/entry.sh /app/
RUN chmod 755 /app/entry.sh
# Install MySQL-client
RUN apt-get update -y && \
apt-get install -y \
wget \
ca-certificates \
debsums \
libncurses6 \
libatomic1 \
libaio1 \
libnuma1 \
gnupg \
lsb-release && \
wget https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-common_8.4.5-1debian12_amd64.deb && \
wget https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-community-client-plugins_8.4.5-1debian12_amd64.deb && \
wget https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-community-client-core_8.4.5-1debian12_amd64.deb && \
wget https://cdn.mysql.com/Downloads/MySQL-8.4/mysql-community-client_8.4.5-1debian12_amd64.deb && \
wget https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-client_8.4.5-1debian12_amd64.deb && \
dpkg -i \
mysql-common_8.4.5-1debian12_amd64.deb \
mysql-community-client-core_8.4.5-1debian12_amd64.deb \
mysql-community-client-plugins_8.4.5-1debian12_amd64.deb \
mysql-community-client_8.4.5-1debian12_amd64.deb \
mysql-client_8.4.5-1debian12_amd64.deb && \
rm -f *.deb && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb
ENTRYPOINT [ "./entry.sh" ]
CMD [ "app.py" ]