Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From python:3.6-slim-stretch | ||
|
||
WORKDIR /usr/src/reminiscence | ||
|
||
RUN apt-get update \ | ||
&& apt-get install --no-install-recommends -y chromium netcat wget \ | ||
&& wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.raspbian.stretch_armhf.deb \ | ||
&& apt-get install -y ./wkhtmltox_0.12.5-1.raspbian.stretch_armhf.deb \ | ||
&& rm ./wkhtmltox_0.12.5-1.raspbian.stretch_armhf.deb \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY requirements.txt . | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
libpq-dev \ | ||
libxml2 \ | ||
libxml2-dev \ | ||
libxslt1-dev \ | ||
python-dev \ | ||
libpython3-all-dev \ | ||
zlib1g-dev | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
COPY . /usr/src/reminiscence | ||
|
||
RUN bash | ||
|
||
RUN mkdir -p logs archive tmp \ | ||
&& python manage.py applysettings --docker yes \ | ||
&& python manage.py generatesecretkey |