cloudposse/geodesic

Move Pip Installation to `requirements.txt`

Closed this issue · 4 comments

what

FROM python:3.6-alpine as base
FROM base as builder
RUN mkdir /install
WORKDIR /install
COPY requirements.txt /requirements.txt
RUN pip install --install-option="--prefix=/install" -r /requirements.txt
FROM base
COPY --from=builder /install /usr/local

why

  • Rely on python package management
  • Automatic package updates by Dependabot

Did you mean all pip packages in dockerfile?

Yes, move all pip packages in the Dockerfile

(also, I updated the description with requirements)

Fixed in 7d9c8ec