FixMiYouShe/Dockerfile
xtaodada 3de12c1de7
All checks were successful
Docker Build / docker build and publish (push) Successful in 1m14s
ci: add Dockerfile
2024-05-16 20:46:58 +08:00

12 lines
293 B
Docker

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" ]