joebew42/daily-activity-log-to-rss

View on GitHub
Dockerfile-onbuild

Summary

Maintainability
Test Coverage
FROM alpine:3.3

RUN apk update && \
    apk add --no-cache python && \
    apk add --no-cache python-dev && \
    apk add --no-cache ca-certificates && \
    apk add --no-cache gcc && \
    apk add --no-cache libxml2-dev && \
    apk add --no-cache libxslt-dev && \
    apk add --no-cache musl-dev && \
    apk add --no-cache --virtual=build-dependencies wget && \
    wget "https://bootstrap.pypa.io/get-pip.py" -O /dev/stdout | python && \
    apk del build-dependencies && \
    rm -rf /var/cache/apk/*

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

ONBUILD COPY requirements.txt /usr/src/app/
ONBUILD RUN pip install --no-cache-dir -r requirements.txt

ONBUILD COPY . /usr/src/app