Dockerfile optimization
This commit is contained in:
parent
bc25f506be
commit
63f3326fc7
|
|
@ -8,7 +8,7 @@ ENV UID=1000 GID=1000 GIT_BRANCH=$GIT_BRANCH GIT_REVISION=$GIT_REVISION DATE=$DA
|
|||
VOLUME ["/app/params", "/app/data", "/app/downloads", "/app/logs"]
|
||||
EXPOSE 80
|
||||
|
||||
RUN if [ "$TARGET_ARCH" = "arm" ] ; then apt install gcc python3-dev -y && apt-get autoremove && apt-get -y clean && rm -rf /var/lib/apt/lists/*; fi
|
||||
RUN if [ "$TARGET_ARCH" = "arm" ] ; then apt update && apt install gcc python3-dev -y && apt-get autoremove && apt-get -y clean && rm -rf /var/lib/apt/lists/*; fi
|
||||
|
||||
COPY --chmod=755 entrypoint.sh ./
|
||||
COPY *.py pip_requirements_$TARGET_ARCH ./
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ fi
|
|||
breaking_changes=$(cat BREAKING_CHANGES_VERSION 2> /dev/null)
|
||||
|
||||
# If BREAKING_CHANGES_VERSION not present or different from dockerfile, it means it's the container init. Install all dependencies
|
||||
if [ ! -e BREAKING_CHANGES_VERSION ] || [ ! $breaking_changes -eq "$BREAKING_CHANGES_VERSION" ]; then
|
||||
if [ ! -e BREAKING_CHANGES_VERSION ] || [ ! "$breaking_changes" -eq "$BREAKING_CHANGES_VERSION" ]; then
|
||||
echo --- Installing ydl_api_ng requirements ---
|
||||
pip3 install --disable-pip-version-check -q --root-user-action=ignore -r pip_requirements_$TARGET_ARCH
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue