зеркало из https://github.com/mozilla/bugbug.git
14 строки
456 B
Docker
14 строки
456 B
Docker
ARG BUGBUG_VERSION=latest
|
|
|
|
FROM mozilla/bugbug-base:$BUGBUG_VERSION
|
|
|
|
# Install dependencies first
|
|
COPY requirements.txt /requirements-http.txt
|
|
RUN pip install --disable-pip-version-check --quiet --no-cache-dir -r /requirements-http.txt
|
|
|
|
# Setup http service as package
|
|
COPY . /code/http_service
|
|
RUN pip install --disable-pip-version-check --quiet --no-cache-dir /code/http_service
|
|
|
|
CMD gunicorn -b 0.0.0.0:$PORT bugbug_http.app --preload --timeout 30 -w 3
|