15 lines
524 B
Docker
15 lines
524 B
Docker
FROM debian:11
|
|
ENV PYTHONUNBUFFERED 1
|
|
WORKDIR /app
|
|
RUN apt update
|
|
RUN apt install gnupg2 -y
|
|
RUN echo "deb http://repo.mysql.com/apt/debian/ bullseye mysql-8.0" >> /etc/apt/sources.list
|
|
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29
|
|
RUN apt update
|
|
RUN apt install libmysqlclient-dev libssl-dev libcrypto++-dev lsb-release python3-pip -y
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install -r requirements.txt
|
|
RUN apt install netcat -y
|
|
RUN apt update
|
|
COPY . /app
|
|
ENTRYPOINT ["./run.sh"]
|