Skip to content

Commit 0cd2431

Browse files
committed
bringin latest from master Dockerfile to allow for multi-platform builds
1 parent 3de71e2 commit 0cd2431

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Dockerfile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

8079
COPY --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

113112
USER 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...
132130
RUN --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

Comments
 (0)