-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af294c7
commit f05c184
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
FROM lwthiker/curl-impersonate:0.5-chrome-alpine AS builder | ||
|
||
FROM python:3.9-alpine | ||
|
||
ENV PYTHONFAULTHANDLER=1 \ | ||
PYTHONUNBUFFERED=1 \ | ||
PYTHONDONTWRITEBYTECODE=1 \ | ||
PIP_DISABLE_PIP_VERSION_CHECK=on | ||
|
||
RUN apk --no-cache add ffmpeg | ||
COPY --from=builder /usr/local /usr/local | ||
|
||
RUN apk --no-cache add ffmpeg build-base nss ca-certificates | ||
|
||
WORKDIR /app | ||
COPY . . | ||
RUN pip install -r requirements.txt --no-cache-dir | ||
|
||
RUN apk del build-base | ||
|
||
RUN ln -s /etc/ssl/certs/ca-certificates.crt /usr/local/lib/python3.9/site-packages/curl_cffi/cacert.pem | ||
|
||
CMD ["python", "bot/main.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters