2019-04-25 12:15:34 +03:00
|
|
|
FROM python:3.7.3-slim
|
2019-04-09 17:30:09 +03:00
|
|
|
|
2019-04-25 13:20:28 +03:00
|
|
|
# Setup dependencies in a cachable step
|
|
|
|
COPY requirements.txt /requirements.txt
|
|
|
|
RUN apt-get update && \
|
2019-04-26 17:14:52 +03:00
|
|
|
apt-get install -y --no-install-recommends gcc g++ libgomp1 && \
|
|
|
|
pip install --disable-pip-version-check --no-cache-dir -r /requirements.txt && \
|
2019-04-25 13:20:28 +03:00
|
|
|
apt-get remove -y gcc g++ && \
|
2019-04-26 17:14:52 +03:00
|
|
|
apt-get autoremove -y && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2019-04-25 13:20:28 +03:00
|
|
|
|
2019-05-02 17:01:48 +03:00
|
|
|
COPY . /tmp/bugbug
|
|
|
|
RUN pip install /tmp/bugbug
|