mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-22 04:23:08 +00:00
Dockerfile update
This commit is contained in:
parent
09f3ba40f8
commit
9c9d3aa051
2 changed files with 22 additions and 18 deletions
|
@ -7,4 +7,13 @@
|
||||||
README.md
|
README.md
|
||||||
LICENSE
|
LICENSE
|
||||||
.gitignore
|
.gitignore
|
||||||
|
.dockerignore
|
||||||
.git
|
.git
|
||||||
|
.github
|
||||||
|
*.psd
|
||||||
|
config/**/*
|
||||||
|
config
|
||||||
|
Dockerfile
|
||||||
|
venv
|
||||||
|
.idea
|
||||||
|
test.py
|
31
Dockerfile
31
Dockerfile
|
@ -1,20 +1,15 @@
|
||||||
FROM python:3-slim
|
FROM python:3.9-slim
|
||||||
VOLUME /config
|
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 . /
|
COPY . /
|
||||||
RUN \
|
VOLUME /config
|
||||||
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/*
|
|
||||||
ENTRYPOINT ["python3", "plex_meta_manager.py"]
|
ENTRYPOINT ["python3", "plex_meta_manager.py"]
|
||||||
|
|
Loading…
Reference in a new issue