forked from getsentry/sentry-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.apidocs
45 lines (40 loc) · 1.05 KB
/
Dockerfile.apidocs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Sentry api documentation generation environment
#
# Instructions:
#
# Build the container:
# $ docker build -t sentry:apidocs -f Dockerfile.apidocs .
# Run the container:
# $ docker run --rm -v $(pwd):/usr/src/output sentry:apidocs
#
# The container will dump the generated documentation in markdown and JSON
# formats into the /usr/src/output directory which you should mount as a volume
#
FROM python:2.7.15-slim-jessie
RUN apt-get update && apt-get install -y --no-install-recommends \
clang \
curl \
g++ \
gcc \
git \
libffi-dev \
libjpeg-dev \
libpq-dev \
libxml2-dev \
libxslt-dev \
libyaml-dev \
llvm \
bzip2 \
make \
redis-server \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Sane defaults for pip
ENV PIP_NO_CACHE_DIR off
ENV PIP_DISABLE_PIP_VERSION_CHECK on
ENV PYTHONUNBUFFERED 1
RUN mkdir -p /usr/src/bin
COPY scripts/build-api-docs /usr/bin
WORKDIR /usr/src
VOLUME /usr/src/output
CMD [ "/usr/bin/build-api-docs" ]