Update Dockerfile
Browse files- Dockerfile +6 -22
Dockerfile
CHANGED
@@ -30,9 +30,12 @@ RUN apt update && \
|
|
30 |
xvfb \
|
31 |
ffmpeg \
|
32 |
imagemagick \
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
36 |
RUN sed -i '/<policy domain="path" rights="none" pattern="@\*"/d' /etc/ImageMagick-6/policy.xml
|
37 |
|
38 |
# Set environment variables
|
@@ -73,25 +76,6 @@ RUN install -d -m 0755 /etc/apt/keyrings && \
|
|
73 |
apt-get install -y firefox
|
74 |
|
75 |
|
76 |
-
# Download and install GeckoDriver
|
77 |
-
#RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.34.0/geckodriver-v0.34.0-linux64.tar.gz \
|
78 |
-
# && tar -xvzf geckodriver-v0.34.0-linux64.tar.gz \
|
79 |
-
# && mv geckodriver /usr/local/bin/ \
|
80 |
-
# && rm geckodriver-v0.34.0-linux64.tar.gz
|
81 |
-
|
82 |
-
# Set up Firefox ESR
|
83 |
-
#RUN wget -O firefox-esr.tar.bz2 "https://download.mozilla.org/?product=firefox-esr-latest-ssl&os=linux64&lang=en-US" && \
|
84 |
-
# tar -xvf firefox-esr.tar.bz2 && \
|
85 |
-
# rm firefox-esr.tar.bz2
|
86 |
-
|
87 |
-
# Print Firefox profile path and copy local profile
|
88 |
-
# RUN echo "Firefox profile path: /home/user/.mozilla/firefox" && \
|
89 |
-
# mkdir -p /home/user/.mozilla/firefox
|
90 |
-
|
91 |
-
# Set up script to start Firefox
|
92 |
-
#COPY start_firefox.sh /home/user/start_firefox.sh
|
93 |
-
#RUN chmod +x /home/user/start_firefox.sh
|
94 |
-
|
95 |
# Set up user and permissions
|
96 |
WORKDIR /home/user/
|
97 |
RUN groupadd --gid ${USER_GID} ${USERNAME} \
|
|
|
30 |
xvfb \
|
31 |
ffmpeg \
|
32 |
imagemagick \
|
33 |
+
ghostscript \
|
34 |
+
fonts-roboto \
|
35 |
+
cron \
|
36 |
+
&& git lfs install \
|
37 |
+
&& rm -rf /var/lib/apt/lists/*
|
38 |
+
RUN fc-cache -f -v
|
39 |
RUN sed -i '/<policy domain="path" rights="none" pattern="@\*"/d' /etc/ImageMagick-6/policy.xml
|
40 |
|
41 |
# Set environment variables
|
|
|
76 |
apt-get install -y firefox
|
77 |
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
# Set up user and permissions
|
80 |
WORKDIR /home/user/
|
81 |
RUN groupadd --gid ${USER_GID} ${USERNAME} \
|