Skip to content

Commit

Permalink
build: 增加dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jeyrce committed Aug 12, 2024
1 parent 86e9848 commit 6d9aaf5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions script/lottery.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3.11.9-slim
WORKDIR /app
COPY lottery.py .
RUN pip install -U pip && \
pip install requests

ENV LOTTERY_START_AT=2024-08-12 \
LOTTERY_TIMES=15 \
ROBOT_TOKEN='****'

CMD ["sh","-c","python", "/app/lottery.py"]

0 comments on commit 6d9aaf5

Please sign in to comment.