-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: [dl-downer] playwright install as user
- Loading branch information
1 parent
8649700
commit c16154f
Showing
2 changed files
with
43 additions
and
11 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,5 +1,5 @@ | ||
# Use an official Python runtime as the base image | ||
FROM python:3.12 | ||
FROM python:3.12-slim | ||
|
||
LABEL org.opencontainers.image.source https://github.com/BelgianNoise/dl-utils | ||
|
||
|
@@ -26,25 +26,56 @@ ENV AUTH_GOPLAY_PASSWORD= | |
ENV PUID=6969 | ||
ENV PGID=6969 | ||
|
||
COPY . . | ||
WORKDIR /app | ||
|
||
COPY . /app | ||
|
||
# Make all binaries executable | ||
RUN chmod +x /binaries/linux/* | ||
RUN chmod +x binaries/linux/* | ||
# Move binaries to /bin | ||
RUN mv /binaries/linux/* /bin/ | ||
RUN mv binaries/linux/* /bin/ | ||
# Move entry.sh to /bin | ||
RUN chmod +x /entry.sh | ||
RUN mv /entry.sh /bin/ | ||
RUN chmod +x entry.sh | ||
RUN mv entry.sh /bin/ | ||
|
||
# install ffmpeg and mkvmerge | ||
RUN apt-get update | ||
RUN apt-get install -y ffmpeg mkvtoolnix | ||
|
||
# Install python packages + playwright install | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
# RUN pip install [email protected] | ||
RUN playwright install --with-deps | ||
# install playwright dependencies | ||
RUN apt-get install -y \ | ||
libnss3 \ | ||
libatk-bridge2.0-0 \ | ||
libx11-xcb1 \ | ||
libxcomposite1 \ | ||
libxdamage1 \ | ||
libxrandr2 \ | ||
libxss1 \ | ||
libxtst6 \ | ||
libgbm1 \ | ||
libasound2 \ | ||
libgtk-3-0 | ||
# RUN apt-get install -y \ | ||
# libsoup2.4-1 \ | ||
# gstreamer1.0-plugins-base \ | ||
# libatomic1 \ | ||
# libxslt1.1 \ | ||
# libwoff1 \ | ||
# libevent-2.1-6 \ | ||
# libharfbuzz-icu0 \ | ||
# gstreamer1.0-plugins-base \ | ||
# gstreamer1.0-plugins-good \ | ||
# libwebpdemux2 \ | ||
# enchant \ | ||
# libsecret-1-0 \ | ||
# hyphen-en-us \ | ||
# libgles2 | ||
|
||
RUN apt-get install -y sudo gosu | ||
RUN rm -rf /var/lib/apt/lists/* | ||
|
||
ENTRYPOINT [ "entry.sh" ] | ||
|
||
CMD [ "python", "start.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