azils3 commited on
Commit
5fd5e25
·
verified ·
1 Parent(s): 510f150

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -2
Dockerfile CHANGED
@@ -59,6 +59,9 @@ RUN RELEASE_TAG=$(curl -sX GET "https://api.github.com/repos/gitpod-io/openvscod
59
  mv ${RELEASE_TAG}-linux-${arch} ${OPENVSCODE_SERVER_ROOT} && \
60
  cp ${OPENVSCODE_SERVER_ROOT}/bin/remote-cli/openvscode-server ${OPENVSCODE_SERVER_ROOT}/bin/remote-cli/code && \
61
  rm -f ${RELEASE_TAG}-linux-${arch}.tar.gz
 
 
 
62
  # Install Firefox within VS-code
63
  RUN install -d -m 0755 /etc/apt/keyrings && \
64
  wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null && \
@@ -67,6 +70,13 @@ RUN install -d -m 0755 /etc/apt/keyrings && \
67
  echo 'Package: *\nPin: origin packages.mozilla.org\nPin-Priority: 1000\n' | tee /etc/apt/preferences.d/mozilla && \
68
  apt-get update && \
69
  apt-get install -y firefox
 
 
 
 
 
 
 
70
  RUN RUN curl -sSL https://pdm-project.org/install-pdm.py | python3 -
71
 
72
  WORKDIR /home/user/
@@ -92,7 +102,7 @@ RUN ${OPENVSCODE} --install-extension ms-python.python && \
92
 
93
  # Install python packages
94
  COPY requirements.txt .
95
- RUN pip3 install --no-cache-dir -r requirements.txt && \
96
  rm -rf requirements.txt
97
 
98
- ENTRYPOINT ["/bin/sh", "-c", "exec $OPENVSCODE --host 0.0.0.0 --port 7860 --without-connection-token"]
 
59
  mv ${RELEASE_TAG}-linux-${arch} ${OPENVSCODE_SERVER_ROOT} && \
60
  cp ${OPENVSCODE_SERVER_ROOT}/bin/remote-cli/openvscode-server ${OPENVSCODE_SERVER_ROOT}/bin/remote-cli/code && \
61
  rm -f ${RELEASE_TAG}-linux-${arch}.tar.gz
62
+
63
+
64
+
65
  # Install Firefox within VS-code
66
  RUN install -d -m 0755 /etc/apt/keyrings && \
67
  wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null && \
 
70
  echo 'Package: *\nPin: origin packages.mozilla.org\nPin-Priority: 1000\n' | tee /etc/apt/preferences.d/mozilla && \
71
  apt-get update && \
72
  apt-get install -y firefox
73
+
74
+ RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.34.0/geckodriver-v0.34.0-linux-aarch64.tar.gz && \
75
+ tar -xvzf geckodriver-v0.34.0-linux-aarch64.tar.gz && \
76
+ sudo mv geckodriver /usr/local/bin/ && \
77
+ sudo chmod +x /usr/local/bin/geckodriver && \
78
+ geckodriver --version
79
+
80
  RUN RUN curl -sSL https://pdm-project.org/install-pdm.py | python3 -
81
 
82
  WORKDIR /home/user/
 
102
 
103
  # Install python packages
104
  COPY requirements.txt .
105
+ RUN pip install --no-cache-dir -r requirements.txt && \
106
  rm -rf requirements.txt
107
 
108
+ ENTRYPOINT ["/bin/sh", "-c", "exec $OPENVSCODE --host 0.0.0.0 --port 7860 --without-connection-token"]