FixMiYouShe/Dockerfile

12 lines
293 B
Docker
Raw Normal View History

2024-05-16 12:46:58 +00:00
FROM python:3.12-slim
LABEL authors="xtaodada"
WORKDIR /usr/app
COPY requirements.txt .
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends git ; rm -rf /var/lib/apt/lists/* # buildkit
RUN pip install -r requirements.txt
COPY . .
CMD [ "python", "main.py" ]