14 lines
423 B
Docker
14 lines
423 B
Docker
|
ARG SENTRY_IMAGE
|
||
|
FROM ${SENTRY_IMAGE}
|
||
|
|
||
|
COPY . /usr/src/sentry
|
||
|
|
||
|
RUN if [ -s /usr/src/sentry/enhance-image.sh ]; then \
|
||
|
/usr/src/sentry/enhance-image.sh; \
|
||
|
fi
|
||
|
|
||
|
RUN if [ -s /usr/src/sentry/requirements.txt ]; then \
|
||
|
echo "sentry/requirements.txt is deprecated, use sentry/enhance-image.sh - see https://develop.sentry.dev/self-hosted/#enhance-sentry-image"; \
|
||
|
pip install -r /usr/src/sentry/requirements.txt; \
|
||
|
fi
|