1
0
docker-letsencrypt-nginx-pr.../Dockerfile
JrCs 6f731e4716 Call docker API directly
No need to have the docker binary
2016-01-06 19:37:04 +01:00

26 lines
873 B
Docker

FROM alpine:latest
MAINTAINER Yves Blusseau <90z7oey02@sneakemail.com> (@blusseau)
ENV DEBUG=false \
DOCKER_GEN_VERSION=0.4.3 \
DOCKER_HOST=unix:///var/run/docker.sock
RUN apk --update add bash curl ca-certificates tar procps jq && \
rm -rf /var/cache/apk/*
RUN curl -L -O https://github.com/jwilder/docker-gen/releases/download/$DOCKER_GEN_VERSION/docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz \
&& tar -C /usr/local/bin -xvzf docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz \
&& rm -f docker-gen-linux-amd64-$DOCKER_GEN_VERSION.tar.gz
WORKDIR /app
# Install simp_le program
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
ENTRYPOINT ["/bin/bash", "/app/entrypoint.sh" ]
CMD ["/bin/bash", "/app/start.sh" ]
COPY /app/ /app/