release the bot
This commit is contained in:
parent
ee492def7d
commit
34ffadf3c1
18 changed files with 1395 additions and 151 deletions
16
Dockerfile
Normal file
16
Dockerfile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
FROM python:3.11-alpine as base
|
||||
|
||||
FROM base as builder
|
||||
# RUN sed -i 's|v3\.\d*|edge|' /etc/apk/repositories
|
||||
RUN apk update && apk add --no-cache gcc musl-dev libffi-dev
|
||||
COPY requirements.txt .
|
||||
RUN pip install -U pip setuptools wheel && pip install --user -r ./requirements.txt && rm ./requirements.txt
|
||||
|
||||
FROM base as runner
|
||||
RUN apk update && apk add --no-cache libffi-dev
|
||||
COPY --from=builder /root/.local /usr/local
|
||||
COPY . /app
|
||||
|
||||
FROM runner
|
||||
WORKDIR /app
|
||||
CMD ["python", "main.py"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue