Skip to content

Commit

Permalink
Use rpm to install in Fedora image (#6670)
Browse files Browse the repository at this point in the history
Dnf will pull caches if invoked for local file install and is also unnecessary
  • Loading branch information
dsseng authored Feb 9, 2024
1 parent a2d35ad commit 45164bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/release-image/Dockerfile.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN ARCH="$(uname -m | sed 's/x86_64/amd64/g' | sed 's/aarch64/arm64/g')" \
&& printf "user: coder\ngroup: coder\n" > /etc/fixuid/config.yml

COPY ci/release-image/entrypoint.sh /usr/bin/entrypoint.sh
RUN --mount=from=packages,src=/tmp,dst=/tmp/packages dnf install -y /tmp/packages/code-server*$(uname -m | sed 's/x86_64/amd64/g' | sed 's/aarch64/arm64/g').rpm
RUN --mount=from=packages,src=/tmp,dst=/tmp/packages rpm -i /tmp/packages/code-server*$(uname -m | sed 's/x86_64/amd64/g' | sed 's/aarch64/arm64/g').rpm

# Allow users to have scripts run on container startup to prepare workspace.
# https://github.com/coder/code-server/issues/5177
Expand Down

0 comments on commit 45164bf

Please sign in to comment.