Skip to content

Commit

Permalink
Merge pull request #792 from felliott/feature/dockerfile-update
Browse files Browse the repository at this point in the history
update Dockerfile to be based on Debian buster
  • Loading branch information
aaxelb committed Aug 8, 2022
2 parents a702759 + 9da55f2 commit 4810096
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.6-slim-stretch as app
FROM python:3.6-slim-buster as app

RUN apt-get update \
&& apt-get install -y \
Expand All @@ -19,32 +19,6 @@ RUN apt-get update \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*

# gosu
ENV GOSU_VERSION 1.10
RUN apt-get update \
&& apt-get install -y \
curl \
gnupg2 \
&& mkdir ~/.gnupg && chmod 600 ~/.gnupg && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \
&& for server in hkp://ipv4.pool.sks-keyservers.net:80 \
kp://ha.pool.sks-keyservers.net:80 \
hkp://pgp.mit.edu:80 \
hkp://keyserver.pgp.com:80 \
; do \
gpg --keyserver "$server" --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && break || echo "Trying new server..." \
; done \
&& curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \
&& gpg --verify /usr/local/bin/gosu.asc \
&& rm /usr/local/bin/gosu.asc \
&& chmod +x /usr/local/bin/gosu \
# /gosu
&& apt-get clean \
&& apt-get autoremove -y \
curl \
gnupg2 \
&& rm -rf /var/lib/apt/lists/*

RUN update-ca-certificates

RUN mkdir -p /code
Expand Down

0 comments on commit 4810096

Please sign in to comment.