2017-01-16 14:51:24 +00:00
|
|
|
FROM redash/base:latest
|
2015-09-30 21:19:22 +00:00
|
|
|
|
2017-01-16 14:51:24 +00:00
|
|
|
# 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
|
2015-10-06 20:21:09 +00:00
|
|
|
|
2017-01-16 14:51:24 +00:00
|
|
|
COPY . ./
|
2017-02-09 20:22:41 +00:00
|
|
|
RUN npm install && npm run build && rm -rf node_modules
|
2017-02-09 14:53:25 +00:00
|
|
|
RUN chown -R redash /app
|
2017-03-06 05:54:20 +00:00
|
|
|
USER redash
|
2015-10-08 19:09:24 +00:00
|
|
|
|
2017-01-16 14:51:24 +00:00
|
|
|
ENTRYPOINT ["/app/bin/docker-entrypoint"]
|