Skip to content

Commit

Permalink
building docker image on armv7l architecture (raspberrypi) #37 (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
s3h10r committed Feb 29, 2020
1 parent 7d69f37 commit 9ab8072
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Dockerfile.armv7l
@@ -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

0 comments on commit 9ab8072

Please sign in to comment.