-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
4162f8e
commit 619421e
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 | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
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 | ||
This comment has been minimized.
Sorry, something went wrong.
CameronJGrant
Author
|
||
|
||
RUN ln -s /etc/ssl/certs/ca-certificates.crt /usr/local/lib/python3.9/site-packages/curl_cffi/cacert.pem | ||
This comment has been minimized.
Sorry, something went wrong.
CameronJGrant
Author
|
||
|
||
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
We can copy over curl-impersonate binaries from this image.