Updates Alpine to 3.8
Updates Alpine to 3.8

FROM python:alpine3.7

MAINTAINER Frank Sachsenheim <funkyfuture@riseup.net>

ARG VERSION
ARG SOURCE_COMMIT
ARG BUILD_DATE

LABEL org.label-schema.schema-version="1.0" \
      org.label-schema.description="Job scheduler for Docker containers, configured via labels." \
      org.label-schema.name="deck-chores" \
      org.label-schema.version=$VERSION \
      org.label-schema.usage="/src/docs/usage.rst" \
      org.label-schema.url="http://deck-chores.rtfd.io" \
      org.label-schema.docker.cmd="docker run --rm -d -v /var/run/docker.sock:/var/run/docker.sock funkyfuture/deck-chores" \
      org.label-schema.docker.cmd.debug="docker run --rm -d -e DEBUG=on -v /var/run/docker.sock:/var/run/docker.sock funkyfuture/deck-chores" \
      org.label-schema.vcs-url="https://github.com/funkyfuture/deck-chores" \
      org.label-schema.build-date=$BUILD_DATE \
      org.label-schema.vcs-ref=$SOURCE_COMMIT

ENTRYPOINT ["/sbin/tini", "--"]
CMD ["deck-chores"]

COPY . /src

RUN apk upgrade --no-cache \
 && apk add --no-cache --virtual .build-deps ca-certificates \
 && apk add --no-cache tini tzdata \
 && /src/setup.py install \
 && rm -Rf /root/.cache \
 && apk del .build-deps

FROM python:alpine3.8

MAINTAINER Frank Sachsenheim <funkyfuture@riseup.net>

ARG VERSION
ARG SOURCE_COMMIT
ARG BUILD_DATE

LABEL org.label-schema.schema-version="1.0" \
      org.label-schema.description="Job scheduler for Docker containers, configured via labels." \
      org.label-schema.name="deck-chores" \
      org.label-schema.version=$VERSION \
      org.label-schema.usage="/src/docs/usage.rst" \
      org.label-schema.url="http://deck-chores.rtfd.io" \
      org.label-schema.docker.cmd="docker run --rm -d -v /var/run/docker.sock:/var/run/docker.sock funkyfuture/deck-chores" \
      org.label-schema.docker.cmd.debug="docker run --rm -d -e DEBUG=on -v /var/run/docker.sock:/var/run/docker.sock funkyfuture/deck-chores" \
      org.label-schema.vcs-url="https://github.com/funkyfuture/deck-chores" \
      org.label-schema.build-date=$BUILD_DATE \
      org.label-schema.vcs-ref=$SOURCE_COMMIT

ENTRYPOINT ["/sbin/tini", "--"]
CMD ["deck-chores"]

COPY . /src

RUN apk upgrade --no-cache \
 && apk add --no-cache --virtual .build-deps ca-certificates \
 && apk add --no-cache tini tzdata \
 && /src/setup.py install \
 && rm -Rf /root/.cache \
 && apk del .build-deps
