Add Dockerfile
This commit is contained in:
parent
8cafe1a945
commit
db74dfa314
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
FROM alpine
|
||||
RUN wget https://www.rarlab.com/rar/unrarsrc-6.0.7.tar.gz -O - | tar x -z -f -
|
||||
RUN apk update;apk add g++ make
|
||||
WORKDIR unrar
|
||||
RUN make lib
|
||||
|
||||
FROM alpine
|
||||
COPY --from=0 /unrar/libunrar.so /lib/libunrar.so
|
||||
RUN apk update;apk add python3 imagemagick uwsgi-python3 uwsgi-http py3-pillow py3-pip py3-wheel py3-psycopg2 postgresql-client git
|
||||
RUN mkdir /rpiwebapp
|
||||
COPY ./requirements.txt /rpiwebapp
|
||||
WORKDIR /rpiwebapp
|
||||
RUN pip install -r requirements.txt
|
||||
COPY . /rpiwebapp
|
||||
VOLUME /srv/games /srv/comics /srv/movies /srv/tv
|
||||
VOLUME /rpiwebapp/socket
|
||||
EXPOSE 80
|
||||
CMD ["uwsgi", "--plugin=http,python", "-M", "-P=4", "--http=:80", "--file=rpiWebApp.py", "--callable=app"]
|
14
requirements.txt
Normal file
14
requirements.txt
Normal file
@ -0,0 +1,14 @@
|
||||
Flask~=1.1.2
|
||||
Flask-Login~=0.5.0
|
||||
click~=7.1.2
|
||||
Werkzeug~=1.0.1
|
||||
filetype~=1.0.7
|
||||
pytz~=2020.5
|
||||
enzyme~=0.4.1
|
||||
requests~=2.25.1
|
||||
blinker~=1.4
|
||||
Wand~=0.6.5
|
||||
SQLAlchemy~=1.3.22
|
||||
inotify~=0.2.10
|
||||
oauthlib~=3.1.0
|
||||
git+https://github.com/lordwelch/comictagger#egg=comictagger
|
Loading…
Reference in New Issue
Block a user