Skip to content

Commit

Permalink
feat(docker): Move to full image
Browse files Browse the repository at this point in the history
  • Loading branch information
thelooter committed Nov 5, 2023
1 parent 67da835 commit 29ce548
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM jetbrains/teamcity-minimal-agent:2023.05.4
FROM jetbrains/teamcity-agent:2023.05.4

ENV DEBIAN_FRONTEND noninteractive

Expand All @@ -10,20 +10,6 @@ RUN apt update \
RUN apt update \
&& add-apt-repository ppa:longsleep/golang-backports \
&& apt update \
&& apt install golang-go git ca-certificates curl gnupg -y

RUN install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
&& chmod a+r /etc/apt/keyrings/docker.gpg

RUN echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null

RUN apt update \
&& apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y

RUN usermod -aG docker buildagent
&& apt install golang-go git -y

USER buildagent

0 comments on commit 29ce548

Please sign in to comment.