mirror of
https://github.com/valitydev/redash.git
synced 2024-11-06 17:15:17 +00:00
28 lines
839 B
Docker
28 lines
839 B
Docker
FROM node:10 as frontend-builder
|
|
|
|
WORKDIR /frontend
|
|
COPY package.json package-lock.json /frontend/
|
|
RUN npm install
|
|
|
|
COPY . /frontend
|
|
RUN npm run build
|
|
|
|
FROM redash/base:debian
|
|
|
|
# Controls whether to install extra dependencies needed for all data sources.
|
|
ARG skip_ds_deps
|
|
|
|
# We first copy only the requirements file, to avoid rebuilding on every file
|
|
# change.
|
|
COPY requirements.txt requirements_bundles.txt requirements_dev.txt requirements_all_ds.txt ./
|
|
RUN pip install -r requirements.txt -r requirements_dev.txt
|
|
RUN if [ "x$skip_ds_deps" = "x" ] ; then pip install -r requirements_all_ds.txt ; else echo "Skipping pip install -r requirements_all_ds.txt" ; fi
|
|
|
|
COPY . /app
|
|
COPY --from=frontend-builder /frontend/client/dist /app/client/dist
|
|
RUN chown -R redash /app
|
|
USER redash
|
|
|
|
ENTRYPOINT ["/app/bin/docker-entrypoint"]
|
|
CMD ["server"]
|