calibre-web-companion/deployment/Dockerfile

30 lines
871 B
Docker
Raw Permalink Normal View History

2020-08-15 04:56:27 +00:00
## pull official base image
FROM python:3.8.3-alpine
EXPOSE 8080
## set work directory
WORKDIR /usr/src/app
## install dependencies
RUN pip install --upgrade pip
COPY ./requirements.txt .
RUN pip install -r requirements.txt
RUN apk add nginx supervisor
# do nginx stuff
2020-08-15 14:00:25 +00:00
RUN adduser -D -g 'www' www
2020-08-15 04:56:27 +00:00
RUN mkdir -p /run/nginx
COPY ./deployment/nginx.conf /etc/nginx/
## copy project
COPY ./CalibreWebCompanion ./CalibreWebCompanion
2020-08-15 14:00:25 +00:00
copy ./deployment/startupscript.py ./
2020-08-15 04:56:27 +00:00
## gunicorn borks started with supervisord
COPY ./deployment/supervisord.conf /etc/
2020-08-15 04:56:27 +00:00
ENTRYPOINT /usr/bin/supervisord -c /etc/supervisord.conf
# docker run --publish 8000:80 \
# -v '/home/massiveatoms/Desktop/logs:/usr/src/app/data' \
2020-08-15 14:00:25 +00:00
# -v '/run/media/massiveatoms/1AEEEA6EEEEA421D1/Documents and Settings/MassiveAtoms/Documents/Calibre Library/:/usr/src/app/calibredir' \
# --name cw calibreweb:1.0.1