Skip to content

Commit

Permalink
Update Dockerfile for GitHub Actions to upgrade to Ubuntu 24.04 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
matsuo committed Dec 4, 2024
1 parent 4f27950 commit 4958fdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM --platform=linux/x86_64 ubuntu:22.04
FROM --platform=linux/x86_64 ubuntu:24.04

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / Publish Image

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/x86_64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

RUN apt update && apt install -y curl tar make bash git build-essential

# Install Go
WORKDIR /root

RUN curl -LO https://go.dev/dl/go1.22.7.linux-amd64.tar.gz && tar -C /tmp -xzf go1.22.7.linux-amd64.tar.gz && rm -f /root/go1.22.7.linux-amd64.tar.gz && mv /tmp/go go1.22
RUN curl -LO https://go.dev/dl/go1.22.10.linux-amd64.tar.gz && tar -C /tmp -xzf go1.22.10.linux-amd64.tar.gz && rm -f /root/go1.22.10.linux-amd64.tar.gz && mv /tmp/go go1.22

WORKDIR /root/go/src/go.googlesource.com/go

Expand Down

0 comments on commit 4958fdc

Please sign in to comment.