2020-03-03 12:38:11 +03:00
|
|
|
FROM python:3.8.2-slim
|
2019-04-09 17:30:09 +03:00
|
|
|
|
2019-05-16 18:24:18 +03:00
|
|
|
# Setup dependencies in a cacheable step
|
2019-04-25 13:20:28 +03:00
|
|
|
COPY requirements.txt /requirements.txt
|
|
|
|
RUN apt-get update && \
|
2019-10-15 15:20:09 +03:00
|
|
|
apt-get install -y --no-install-recommends gcc g++ libgomp1 libffi-dev && \
|
2019-10-21 19:42:39 +03:00
|
|
|
pip install --disable-pip-version-check --quiet --no-cache-dir -r /requirements.txt && \
|
2019-12-17 18:49:10 +03:00
|
|
|
apt-get purge -y gcc g++ libffi-dev && \
|
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
|
|
|
|
2020-02-26 01:31:43 +03:00
|
|
|
COPY infra/adr_config.toml /root/.config/adr/config.toml
|
|
|
|
|
2019-05-02 17:01:48 +03:00
|
|
|
COPY . /tmp/bugbug
|
2019-10-21 19:42:39 +03:00
|
|
|
RUN pip install --disable-pip-version-check --quiet --no-cache-dir /tmp/bugbug
|