diff --git a/certbot/Dockerfile b/certbot/Dockerfile index 28edf89..3c6b819 100644 --- a/certbot/Dockerfile +++ b/certbot/Dockerfile @@ -3,29 +3,6 @@ LABEL maintainer "Jessie Frazelle " RUN apk --no-cache add \ bash \ - libffi \ - libressl \ - python3 - -ENV CERTBOT_VERSION 1.5.0 - -RUN buildDeps=' \ - build-base \ - git \ - libffi-dev \ - libressl-dev \ - python3-dev \ - py3-pip \ - ' \ - set -x \ - && apk --no-cache add $buildDeps \ - && pip3 install acme \ - && git clone --depth 1 --branch "v$CERTBOT_VERSION" https://github.com/certbot/certbot /usr/src/certbot \ - && cd /usr/src/certbot/certbot \ - && python3 setup.py build || return 1 \ - && python3 setup.py install --prefix=/usr || return 1 \ - && rm -rf /usr/src/certbot \ - && apk del $buildDeps \ - && echo "Build complete." + certbot ENTRYPOINT [ "certbot" ] diff --git a/spotify/Dockerfile b/spotify/Dockerfile index 02ae7b4..475c77e 100644 --- a/spotify/Dockerfile +++ b/spotify/Dockerfile @@ -14,16 +14,19 @@ FROM debian:sid-slim LABEL maintainer "Jessie Frazelle " RUN apt-get update && apt-get install -y \ + ca-certificates \ + curl \ dirmngr \ gnupg \ --no-install-recommends \ - && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4773BD5E130D1D45 \ + && curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | apt-key add - \ && echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list.d/spotify.list \ && apt-get update && apt-get install -y \ alsa-utils \ libgl1-mesa-dri \ libgl1-mesa-glx \ libpulse0 \ + libsm6 \ spotify-client \ xdg-utils \ --no-install-recommends \ diff --git a/terraform/Dockerfile b/terraform/Dockerfile index eba2a95..a5af8f0 100644 --- a/terraform/Dockerfile +++ b/terraform/Dockerfile @@ -13,16 +13,15 @@ RUN apk add --no-cache \ musl-dev \ zip -ENV TERRAFORM_VERSION v0.12.28 +ENV TERRAFORM_VERSION v0.14.7 -RUN go get github.com/hashicorp/terraform || true +RUN git clone --depth 1 --branch ${TERRAFORM_VERSION} https://github.com/hashicorp/terraform.git /go/src/github.com/hashicorp/terraform WORKDIR /go/src/github.com/hashicorp/terraform -RUN git checkout "${TERRAFORM_VERSION}" - -RUN XC_ARCH="amd64" XC_OS="linux" LD_FLAGS=" -extldflags -static" make fmt bin \ - && mv bin/terraform /usr/bin/terraform +RUN CGO_ENABLED=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' \ + -o bin/terraform && \ + mv bin/terraform /usr/bin/terraform FROM alpine:latest