mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
be6426014d
1. Simplify user creation to create a non system user (so the uid will usually match the host user). 2. Set the user to redash & remove the need to change user in docker entrypoint.
14 lines
417 B
Docker
14 lines
417 B
Docker
FROM redash/base:latest
|
|
|
|
# We first copy only the requirements file, to avoid rebuilding on every file
|
|
# change.
|
|
COPY requirements.txt requirements_dev.txt requirements_all_ds.txt ./
|
|
RUN pip install -r requirements.txt -r requirements_dev.txt -r requirements_all_ds.txt
|
|
|
|
COPY . ./
|
|
RUN npm install && npm run build && rm -rf node_modules
|
|
RUN chown -R redash /app
|
|
USER redash
|
|
|
|
ENTRYPOINT ["/app/bin/docker-entrypoint"]
|