Skip to content

Commit

Permalink
chore: cleanup Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsergio committed Nov 10, 2024
1 parent 2dd6082 commit bc30a50
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,20 @@ RUN apt update -qq && apt install build-essential software-properties-common lld
mesa-common-dev libglu1-mesa-dev libglib2.0-dev libfontconfig \
libxkbcommon-dev mesa-utils libgl1-mesa-dev libglu1-mesa-dev \
libxkbcommon-x11-0 libssl-dev openssl unzip clang libgtk-3-dev \
qt6-base-dev time qt6-base-private-dev \
qt6-base-dev time qt6-base-private-dev xvfb \
-y

# Install GitHub command-line interface (gh)
# Instructions copied from https://github.com/cli/cli/blob/trunk/docs/install_linux.md
RUN mkdir -p -m 755 /etc/apt/keyrings \
&& curl -s https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt-get update \
&& apt-get install gh -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

USER ubuntu

WORKDIR /home/ubuntu
Expand All @@ -58,20 +69,3 @@ RUN mkdir actions-runner && cd actions-runner && \
echo "93ac1b7ce743ee85b5d386f5c1787385ef07b3d7c728ff66ce0d3813d5f46900 actions-runner-linux-x64-2.320.0.tar.gz" | shasum -a 256 -c && \
tar xzf ./actions-runner-linux-x64-2.320.0.tar.gz && \
./config.sh --url https://github.com/KDABLabs/qt-flutter-embedder --token $GITHUB_RUNNER_TOKEN

# More dependencies, TODO: move up!
USER root
RUN apt install xvfb -y

# Install GitHub command-line interface (gh)
# Instructions copied from https://github.com/cli/cli/blob/trunk/docs/install_linux.md
RUN mkdir -p -m 755 /etc/apt/keyrings \
&& curl -s https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt-get update \
&& apt-get install gh -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

USER ubuntu

0 comments on commit bc30a50

Please sign in to comment.