Skip to content

Commit

Permalink
Fix Dockerfile deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlwilson committed Jul 3, 2024
1 parent 4c545d2 commit 897ffb0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions centos.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM quay.io/centos/centos:stream9
MAINTAINER GoCD Team <[email protected]>
LABEL org.opencontainers.image.authors="GoCD Team <[email protected]>"

ARG BUILDARCH
ARG TARGETARCH
Expand All @@ -13,8 +13,8 @@ ENTRYPOINT ["/usr/bin/tini", "--"]
USER go

# force encoding
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8

CMD ["/bin/bash", "-lc", "/go/go-agent"]
1 change: 1 addition & 0 deletions dind.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM gocd/gocd-agent-docker-dind:v24.2.0
LABEL org.opencontainers.image.authors="GoCD Team <[email protected]>"

USER root
RUN apk upgrade --no-cache && \
Expand Down
8 changes: 4 additions & 4 deletions ubuntu.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM ubuntu:24.04
MAINTAINER GoCD Team <[email protected]>
LABEL org.opencontainers.image.authors="GoCD Team <[email protected]>"

COPY provision /usr/local/src/provision/

Expand All @@ -10,8 +10,8 @@ ENTRYPOINT ["/usr/bin/tini", "--"]
USER go

# force encoding
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8

CMD ["/bin/bash", "-lc", "/go/go-agent"]
1 change: 1 addition & 0 deletions windowsservercore.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM mcr.microsoft.com/windows/servercore:ltsc2022
LABEL org.opencontainers.image.authors="GoCD Team <[email protected]>"

# Shamelessly nabbed from https://github.com/gantrior/docker-chrome-windows
#
Expand Down

0 comments on commit 897ffb0

Please sign in to comment.