-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (24 loc) · 903 Bytes
/
Dockerfile
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
# Debian 9 ships with Python 3.5 which is not usable with mut
# (https://jira.mongodb.org/browse/DOP-1301, fixed by
# https://github.com/p-mongo/mut/commit/5beefc1c9ac2a9afabb86d918bfe598477b927e1).
# Debian 10 ships with Python 3.7 which is supposed to work but it doesn't
# per https://jira.mongodb.org/browse/DOP-1303.
# Use Debian 9 with the patch.
FROM debian:9
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get -y install make git python-pip python3-pip \
ruby-dev pkg-config libxml2-dev && \
python2 -m pip install giza && \
python3 -m pip install mut && \
gem install yard bundler
# Apply the fix in
# https://github.com/p-mongo/mut/commit/5beefc1c9ac2a9afabb86d918bfe598477b927e1
RUN git clone https://github.com/p-mongo/mut && \
cd mut && \
python3 setup.py install
WORKDIR /app
COPY Gemfile .
RUN bundle install
COPY . .
ENTRYPOINT ["./entrypoint.sh"]