fix: re-installing local superset in cache image (#10766)

* fix: re-installing local superset in cache image

* Fixing webpack
This commit is contained in:
Craig Rueda 2020-09-02 13:01:36 -07:00 committed by GitHub
parent 7bccb38a60
commit 45f4c689a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -21,10 +21,12 @@
FROM preset/superset:dev
COPY ./requirements/*.txt ./docker/requirements-*.txt /app/requirements/
COPY ./setup.py ./MANIFEST.in /app/
USER root
# Cache everything for dev purposes...
RUN cd /app \
&& pip install --no-cache -r requirements/docker.txt \
&& pip install --no-cache -r requirements/requirements-local.txt || true
&& pip install -e . \
&& pip install -r requirements/docker.txt \
&& pip install -r requirements/requirements-local.txt || true
USER superset

View File

@ -71,9 +71,9 @@ services:
volumes: *superset-volumes
superset-node:
image: node:10-jessie
image: node:12
container_name: superset_node
command: ["bash", "-c", "cd /app/superset-frontend && npm install --global webpack webpack-cli && npm install && npm run dev"]
command: ["bash", "-c", "cd /app/superset-frontend && npm install -f --no-optional --global webpack webpack-cli && npm install -f --no-optional && npm run dev"]
env_file: docker/.env
depends_on: *superset-depends-on
volumes: *superset-volumes