FROM nginx
RUN apt-get update && apt-get install -y wget
ENV DOCKERIZE_VERSION v0.6.0
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
WORKDIR /app
VOLUME ["/app"]
ENTRYPOINT ["dockerize", "-template", "/etc/nginx/conf.d/mysite.template:/etc/nginx/conf.d/default.conf"]
CMD ["nginx", "-g", "daemon off;"]
|