1
0
docker-letsencrypt-nginx-pr.../Dockerfile
Nicolas Duchon dbb3e6fb35
Update build stage to golang 1.12 (#539)
golang version bump
2019-05-15 12:40:32 +02:00

53 lines
1.2 KiB
Docker

FROM golang:1.12-alpine AS go-builder
ENV DOCKER_GEN_VERSION=0.7.4
# Install build dependencies for docker-gen
RUN apk add --update \
curl \
gcc \
git \
make \
musl-dev
# Build docker-gen
RUN go get github.com/jwilder/docker-gen \
&& cd /go/src/github.com/jwilder/docker-gen \
&& git checkout $DOCKER_GEN_VERSION \
&& make get-deps \
&& make all
FROM alpine:3.8
LABEL maintainer="Yves Blusseau <90z7oey02@sneakemail.com> (@blusseau)"
ENV DEBUG=false \
DOCKER_HOST=unix:///var/run/docker.sock
# Install packages required by the image
RUN apk add --update \
bash \
ca-certificates \
coreutils \
curl \
jq \
openssl \
&& rm /var/cache/apk/*
# Install docker-gen from build stage
COPY --from=go-builder /go/src/github.com/jwilder/docker-gen/docker-gen /usr/local/bin/
# Install simp_le
COPY /install_simp_le.sh /app/install_simp_le.sh
RUN chmod +rx /app/install_simp_le.sh \
&& sync \
&& /app/install_simp_le.sh \
&& rm -f /app/install_simp_le.sh
COPY /app/ /app/
WORKDIR /app
ENTRYPOINT [ "/bin/bash", "/app/entrypoint.sh" ]
CMD [ "/bin/bash", "/app/start.sh" ]