Remove build.sh (it makes the docker build process painfull)
This commit is contained in:
parent
4968fad44f
commit
4337ca97e4
2 changed files with 25 additions and 30 deletions
27
Dockerfile
27
Dockerfile
|
|
@ -2,6 +2,29 @@ FROM jwilder/nginx-proxy
|
||||||
|
|
||||||
MAINTAINER [ "Jason Wilder <mail@jasonwilder.com>", "Yves Blusseau <90z7oey02@sneakemail.com>" ]
|
MAINTAINER [ "Jason Wilder <mail@jasonwilder.com>", "Yves Blusseau <90z7oey02@sneakemail.com>" ]
|
||||||
|
|
||||||
COPY . /app/
|
RUN apt-get update
|
||||||
|
|
||||||
RUN chmod +rx /app/build.sh && /app/build.sh && rm -f /app/build.sh
|
# Install python packages needed by simp_le
|
||||||
|
RUN apt-get install -y -q --no-install-recommends python python-requests
|
||||||
|
|
||||||
|
# Install python packages needed to build simp_le
|
||||||
|
RUN apt-get install -y -q --no-install-recommends git gcc libssl-dev libffi-dev python-dev python-pip
|
||||||
|
|
||||||
|
# Get Let's Encrypt simp_le client source
|
||||||
|
RUN git -C /opt clone https://github.com/kuba/simp_le.git
|
||||||
|
|
||||||
|
WORKDIR /opt/simp_le
|
||||||
|
# Upgrade setuptools
|
||||||
|
RUN pip install -U setuptools
|
||||||
|
# Install simp_le in /usr/local/bin
|
||||||
|
RUN python ./setup.py install
|
||||||
|
|
||||||
|
# Make house cleaning
|
||||||
|
RUN rm -rf /opt/simp_le
|
||||||
|
|
||||||
|
RUN -get autoremove -y git gcc libssl-dev libffi-dev python-dev python-pip
|
||||||
|
|
||||||
|
RUN apt-get clean all
|
||||||
|
RUN rm -r /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
COPY . /app/
|
||||||
|
|
|
||||||
28
build.sh
28
build.sh
|
|
@ -1,28 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
apt-get update
|
|
||||||
|
|
||||||
# Install python packages needed by simp_le
|
|
||||||
apt-get install -y -q --no-install-recommends python python-requests
|
|
||||||
|
|
||||||
# Install python packages needed to build simp_le
|
|
||||||
apt-get install -y -q --no-install-recommends git gcc libssl-dev libffi-dev python-dev python-pip
|
|
||||||
|
|
||||||
# Get Let's Encrypt simp_le client source
|
|
||||||
git -C /opt clone https://github.com/kuba/simp_le.git
|
|
||||||
|
|
||||||
cd /opt/simp_le
|
|
||||||
# Upgrade setuptools
|
|
||||||
pip install -U setuptools
|
|
||||||
# Install simp_le in /usr/local/bin
|
|
||||||
python ./setup.py install
|
|
||||||
|
|
||||||
# Make house cleaning
|
|
||||||
rm -rf /opt/simp_le
|
|
||||||
|
|
||||||
apt-get autoremove -y git gcc libssl-dev libffi-dev python-dev python-pip
|
|
||||||
|
|
||||||
apt-get clean all
|
|
||||||
rm -r /var/lib/apt/lists/*
|
|
||||||
Loading…
Reference in a new issue