Skip to content

Commit

Permalink
Update Dockerfile (#35)
Browse files Browse the repository at this point in the history
consider the processor architecture when installing drawio-desktop in order to support both amd64 and arm64
  • Loading branch information
tzahimizrahi authored May 13, 2024
1 parent e059d37 commit b71b997
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ RUN apt-get update \
gnupg2 software-properties-common less vim graphviz \
libgbm-dev libasound2 xvfb
RUN curl -s https://api.github.com/repos/jgraph/drawio-desktop/releases/latest \
| grep browser_download_url | grep '\.deb' | cut -d '"' -f 4 | wget -i - \
&& apt -f install -y ./drawio-amd64-*.deb \
&& rm -f ./drawio-amd64-*.deb
| grep browser_download_url | grep '\.deb' | grep $(dpkg --print-architecture) | cut -d '"' -f 4 | wget -i - \
&& apt -f install -y ./drawio-$(dpkg --print-architecture)-*.deb \
&& rm -f ./drawio-$(dpkg --print-architecture)-*.deb

COPY requirements.txt /tmp/
RUN pip install -r /tmp/requirements.txt
Expand Down

0 comments on commit b71b997

Please sign in to comment.