mirror of
https://github.com/GSA/notifications-api.git
synced 2026-06-01 11:58:34 -04:00
Use http proxy for Docker
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
FROM python:3.4-slim
|
||||
|
||||
ARG APT_HTTP_PROXY
|
||||
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN \
|
||||
echo "Install base packages" \
|
||||
&& ([ -z "$APT_HTTP_PROXY" ] || echo "Acquire::http::Proxy \"${APT_HTTP_PROXY}\";\n" > /etc/apt/apt.conf.d/99HttpProxy) \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
make \
|
||||
|
||||
@@ -7,4 +7,4 @@ help:
|
||||
|
||||
.PHONY: build-build-image
|
||||
build-build-image:
|
||||
docker build --pull -f Dockerfile-build -t govuk/notify-api-builder .
|
||||
docker build --pull -f Dockerfile-build -t govuk/notify-api-builder --build-arg APT_HTTP_PROXY="${HTTP_PROXY}" .
|
||||
|
||||
Reference in New Issue
Block a user