Skip to content

Commit

Permalink
from image to Debian Buster (10)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdess committed Oct 2, 2020
1 parent 150a136 commit 6b45d61
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# start from debian 9 slim version
FROM debian:stretch-slim

# enable backport repo
RUN echo deb http://httpredir.debian.org/debian stretch-backports main | tee /etc/apt/sources.list.d/backports.list
# start from debian 10 slim version
FROM debian:buster-slim

# install certbot, supervisor and utilities
RUN apt-get update && apt-get install --no-install-recommends -yqq \
gnupg \
apt-transport-https \
Expand All @@ -12,18 +10,17 @@ RUN apt-get update && apt-get install --no-install-recommends -yqq \
ca-certificates \
curl \
procps \
&& apt-get install --no-install-recommends -yqq certbot -t stretch-backports \
&& apt-get install --no-install-recommends -yqq certbot \
&& apt-get install --no-install-recommends -yqq supervisor \
&& apt-get clean autoclean && apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*

# install haproxy from official debian repos (https://haproxy.debian.net/)

RUN curl https://haproxy.debian.net/bernat.debian.org.gpg | apt-key add -
RUN echo deb http://haproxy.debian.net stretch-backports-2.0 main | tee /etc/apt/sources.list.d/haproxy.list

RUN echo deb http://haproxy.debian.net buster-backports-2.0 main | tee /etc/apt/sources.list.d/haproxy.list
RUN apt-get update \
&& apt-get install -yqq haproxy=2.0.\* -t stretch-backports \
&& apt-get install -yqq haproxy=2.0.\* \
&& apt-get clean autoclean && apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit 6b45d61

Please sign in to comment.