Skip to content

Instantly share code, notes, and snippets.

@stzr1123
stzr1123 / Dockerfile
Created November 13, 2019 12:38 — forked from noelbundick/Dockerfile
Consuming packages from a private Azure Pipelines Python artifact feed
# We set an environment variable in this phase so it gets picked up by pip, but we don't want to bake secrets into our container image
FROM python:3.6-alpine AS builder
ARG INDEX_URL
ENV PIP_EXTRA_INDEX_URL=$INDEX_URL
COPY requirements.txt .
RUN pip install -U pip \
&& pip install --user -r requirements.txt