mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-03-03 18:00:26 +00:00
This pins to a specific version of Alpine to insulate against Alpine version bumps renaming packages (or changing the way they work like when `pip` got split out into a separate package) and uses `apk add --no-cache` instead of `apk update` to create a slightly smaller end result.
5 lines
115 B
Docker
5 lines
115 B
Docker
FROM alpine:3.9
|
|
RUN apk add --no-cache entr py-pip git
|
|
COPY requirements.txt .
|
|
RUN pip install -r requirements.txt
|