calibre-web-companion/deployment/Dockerfile

25 lines
636 B
Docker
Raw Normal View History

2020-08-15 04:56:27 +00:00
## pull official base image
2021-03-02 03:09:15 +00:00
FROM nginx/unit:1.22.0-python3.9
EXPOSE 80
2020-08-15 04:56:27 +00:00
## set work directory
WORKDIR /usr/src/app
2021-03-02 03:09:15 +00:00
2020-08-15 04:56:27 +00:00
## install dependencies
COPY ./requirements.txt .
RUN pip install -r requirements.txt
## copy project
COPY ./CalibreWebCompanion ./CalibreWebCompanion
2021-03-02 03:09:15 +00:00
COPY ./deployment/entrypoints/* /docker-entrypoint.d/
# perms
RUN chown -R unit:unit /usr/src/app
RUN chmod +x /docker-entrypoint.d/start.sh
2020-08-15 04:56:27 +00:00
2021-03-02 03:09:15 +00:00
# docker run --publish 80:80 \
# -v '/home/MassiveAtoms/Desktop/logs:/usr/src/app/data' \
# -v '/home/MassiveAtoms/windows/Users/MassiveAtoms/Documents/Calibre Library/:/usr/src/app/calibredir' \
# --name cw calibreweb:1.0