mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 03:26:45 +00:00
Small size optimisation for devcontainer (#5852)
* avoid cache directory * clean apt lists
This commit is contained in:
parent
67b70343c3
commit
785b8eb602
@ -31,17 +31,18 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && \
|
|||||||
default-libmysqlclient-dev mariadb-client \
|
default-libmysqlclient-dev mariadb-client \
|
||||||
# LDAP support
|
# LDAP support
|
||||||
libldap2-dev libsasl2-dev && \
|
libldap2-dev libsasl2-dev && \
|
||||||
apt-get autoclean && apt-get autoremove
|
apt-get autoclean && apt-get autoremove && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# [Optional] Uncomment this line to install global node packages.
|
# [Optional] Uncomment this line to install global node packages.
|
||||||
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
|
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
|
||||||
|
|
||||||
# Update pip
|
# Update pip
|
||||||
RUN pip install --upgrade pip
|
RUN pip install --no-cache-dir --upgrade pip
|
||||||
|
|
||||||
# Install required base-level python packages
|
# Install required base-level python packages
|
||||||
COPY ./docker/requirements.txt base_requirements.txt
|
COPY ./docker/requirements.txt base_requirements.txt
|
||||||
RUN pip install --disable-pip-version-check -U -r base_requirements.txt
|
RUN pip install --disable-pip-version-check --no-cache-dir -U -r base_requirements.txt
|
||||||
|
|
||||||
# preserve command history between container starts
|
# preserve command history between container starts
|
||||||
# Ref: https://code.visualstudio.com/remote/advancedcontainers/persist-bash-history
|
# Ref: https://code.visualstudio.com/remote/advancedcontainers/persist-bash-history
|
||||||
|
Loading…
x
Reference in New Issue
Block a user