Commit a12b5240 authored by nanahira's avatar nanahira

add docker things

parent 2f291359
__pycache__
*.py[cod]
cards.cdb
.git*
Dockerfile
.dockerignore
__pycache__
*.py[cod]
FROM debian:bookworm-slim as cards_cdb_fetcher
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN wget -O cards.cdb https://cdn02.moecube.com:444/ygopro-database/zh-CN/cards.cdb
FROM python:3.11-slim-bookworm
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . ./
COPY --from=cards_cdb_fetcher /app/cards.cdb ./cards.cdb
RUN python card_build.py
ENTRYPOINT ["python"]
CMD ["guess_card_game.py"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment