From 9c9d3aa051ba6b8c4073b30c884a95f3ed89faa2 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 4 Aug 2021 09:46:42 -0400 Subject: [PATCH] Dockerfile update --- .dockerignore | 9 +++++++++ Dockerfile | 31 +++++++++++++------------------ 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/.dockerignore b/.dockerignore index 689d5bfd..f20e7a38 100644 --- a/.dockerignore +++ b/.dockerignore @@ -7,4 +7,13 @@ README.md LICENSE .gitignore +.dockerignore .git +.github +*.psd +config/**/* +config +Dockerfile +venv +.idea +test.py \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 6541b903..d0256ffc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,15 @@ -FROM python:3-slim -VOLUME /config +FROM python:3.9-slim +RUN echo "**** install system packages ****" \ + && apt-get update \ + && apt-get upgrade -y --no-install-recommends \ + && apt-get install -y tzdata --no-install-recommends \ + && apt-get install -y gcc g++ libxml2-dev libxslt-dev libz-dev +COPY requirements.txt / +RUN echo "**** install python packages ****" \ + && pip3 install --no-cache-dir --upgrade --requirement /requirements.txt \ + && apt-get autoremove -y \ + && apt-get clean \ + && rm -rf /requirements.txt /tmp/* /var/tmp/* /var/lib/apt/lists/* COPY . / -RUN \ - echo "**** install system packages ****" && \ - apt-get update && \ - apt-get upgrade -y --no-install-recommends && \ - apt-get install -y tzdata --no-install-recommends && \ - apt-get install -y gcc g++ libxml2-dev libxslt-dev libz-dev && \ - echo "**** install python packages ****" && \ - pip3 install --no-cache-dir --upgrade --requirement /requirements.txt && \ - echo "**** cleanup ****" && \ - apt-get autoremove -y && \ - apt-get clean && \ - rm -rf \ - /requirements.txt \ - /tmp/* \ - /var/tmp/* \ - /var/lib/apt/lists/* +VOLUME /config ENTRYPOINT ["python3", "plex_meta_manager.py"]