Skip to content

Commit

Permalink
Pin docker image to stretch (#1324)
Browse files Browse the repository at this point in the history
* pin stretch image

* update stretch repo

* Update Dockerfile.test
  • Loading branch information
meiji163 authored Oct 10, 2023
1 parent 671d7a2 commit e664c1b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Dockerfile.packaging
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM golang:1.17
FROM golang:1.17-stretch

# Update stretch repositories
RUN sed -i -e 's/deb.debian.org/archive.debian.org/g' \
-e 's|security.debian.org|archive.debian.org/|g' \
-e '/stretch-updates/d' /etc/apt/sources.list

RUN apt-get update
RUN apt-get install -y ruby ruby-dev rubygems build-essential
Expand Down
7 changes: 6 additions & 1 deletion Dockerfile.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
FROM golang:1.17
FROM golang:1.17-stretch
LABEL maintainer="[email protected]"

#Update stretch repositories
RUN sed -i -e 's/deb.debian.org/archive.debian.org/g' \
-e 's|security.debian.org|archive.debian.org/|g' \
-e '/stretch-updates/d' /etc/apt/sources.list

RUN apt-get update
RUN apt-get install -y lsb-release
RUN rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit e664c1b

Please sign in to comment.