@@ -61,9 +61,7 @@ ENV LANG=C.UTF-8 \
6161 SUPERSET_HOME="/app/superset_home" \
6262 SUPERSET_PORT=8088
6363
64- RUN --mount=target=/var/lib/apt/lists,type=cache \
65- --mount=target=/var/cache/apt,type=cache \
66- mkdir -p ${PYTHONPATH} superset/static superset-frontend apache_superset.egg-info requirements \
64+ RUN mkdir -p ${PYTHONPATH} superset/static superset-frontend apache_superset.egg-info requirements \
6765 && useradd --user-group -d ${SUPERSET_HOME} -m --no-log-init --shell /bin/bash superset \
6866 && apt-get update -qq && apt-get install -yqq --no-install-recommends \
6967 build-essential \
@@ -75,7 +73,8 @@ RUN --mount=target=/var/lib/apt/lists,type=cache \
7573 libecpg-dev \
7674 libldap2-dev \
7775 && touch superset/static/version_info.json \
78- && chown -R superset:superset ./*
76+ && chown -R superset:superset ./* \
77+ && rm -rf /var/lib/apt/lists/*
7978
8079COPY --chown=superset:superset setup.py MANIFEST.in README.md ./
8180# setup.py uses the version information in package.json
@@ -112,9 +111,8 @@ ARG GECKODRIVER_VERSION=v0.33.0 \
112111
113112USER root
114113
115- RUN --mount=target=/var/lib/apt/lists,type=cache \
116- --mount=target=/var/cache/apt,type=cache \
117- apt-get install -yqq --no-install-recommends \
114+ RUN apt-get update -qq \
115+ && apt-get install -yqq --no-install-recommends \
118116 libnss3 \
119117 libdbus-glib-1-2 \
120118 libgtk-3-0 \
@@ -127,7 +125,7 @@ RUN --mount=target=/var/lib/apt/lists,type=cache \
127125 # Install Firefox
128126 && wget -q https://download-installer.cdn.mozilla.net/pub/firefox/releases/${FIREFOX_VERSION}/linux-x86_64/en-US/firefox-${FIREFOX_VERSION}.tar.bz2 -O - | tar xfj - -C /opt \
129127 && ln -s /opt/firefox/firefox /usr/local/bin/firefox \
130- && apt-get autoremove -yqq --purge wget && rm -rf /var/[log,tmp]/* /tmp/*
128+ && apt-get autoremove -yqq --purge wget && rm -rf /var/[log,tmp]/* /tmp/* /var/lib/apt/lists/*
131129# Cache everything for dev purposes...
132130RUN --mount=type=bind,target=./requirements/base.txt,src=./requirements/base.txt \
133131 --mount=type=bind,target=./requirements/docker.txt,src=./requirements/docker.txt \
0 commit comments