You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by dp...@apache.org on 2022/09/19 09:30:30 UTC
[superset] branch master updated: chore: Use slim image in Dockerfile (#21326)
This is an automated email from the ASF dual-hosted git repository.
dpgaspar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 7d2f07e78f chore: Use slim image in Dockerfile (#21326)
7d2f07e78f is described below
commit 7d2f07e78f2788bcf87134eb9100dbd24b82bb19
Author: EugeneTorap <ev...@gmail.com>
AuthorDate: Mon Sep 19 12:30:17 2022 +0300
chore: Use slim image in Dockerfile (#21326)
---
Dockerfile | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index bb9f521737..faf1d29c51 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -18,7 +18,7 @@
######################################################################
# PY stage that simply does a pip install on our requirements
######################################################################
-ARG PY_VER=3.8.13
+ARG PY_VER=3.8.13-slim
FROM python:${PY_VER} AS superset-py
RUN mkdir /app \
@@ -45,10 +45,7 @@ RUN cd /app \
######################################################################
# Node stage to deal with static asset construction
######################################################################
-FROM node:16 AS superset-node
-
-ARG NPM_VER=7
-RUN npm install -g npm@${NPM_VER}
+FROM node:16-slim AS superset-node
ARG NPM_BUILD_CMD="build"
ENV BUILD_CMD=${NPM_BUILD_CMD}
@@ -71,7 +68,7 @@ RUN cd /app/superset-frontend \
######################################################################
# Final lean image...
######################################################################
-ARG PY_VER=3.8.13
+ARG PY_VER=3.8.13-slim
FROM python:${PY_VER} AS lean
ENV LANG=C.UTF-8 \
@@ -133,7 +130,7 @@ COPY ./requirements/*.txt ./docker/requirements-*.txt/ /app/requirements/
USER root
RUN apt-get update -y \
- && apt-get install -y --no-install-recommends libnss3 libdbus-glib-1-2 libgtk-3-0 libx11-xcb1
+ && apt-get install -y --no-install-recommends libnss3 libdbus-glib-1-2 libgtk-3-0 libx11-xcb1 wget
# Install GeckoDriver WebDriver
RUN wget https://github.com/mozilla/geckodriver/releases/download/${GECKODRIVER_VERSION}/geckodriver-${GECKODRIVER_VERSION}-linux64.tar.gz -O /tmp/geckodriver.tar.gz && \