calibre-web-companion/deployment/Dockerfile

24 lines
629 B
Docker
Raw Permalink 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
2021-03-05 13:32:42 +00:00
ENV AM_DOCKER_INSTANCE Yes
2020-08-15 04:56:27 +00:00
## set work directory
2021-03-05 13:32:42 +00:00
WORKDIR /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-05 13:32:42 +00:00
2021-03-02 03:09:15 +00:00
# perms
2021-03-05 13:32:42 +00:00
RUN chown -R unit:unit /app
COPY ./deployment/entrypoints/* /docker-entrypoint.d/
2021-03-02 03:09:15 +00:00
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 \
2021-03-05 13:32:42 +00:00
# -v '/home/MassiveAtoms/Desktop/logs:/app/data' \
# -v '/home/MassiveAtoms/windows/Users/MassiveAtoms/Documents/Calibre Library/:/app/calibredir' \
2021-03-02 03:09:15 +00:00
# --name cw calibreweb:1.0