FROM 994136867826.dkr.ecr.us-west-2.amazonaws.com/alpine-dumb-init:3.8.0-4

# ruby-webrick is included here as it's an unspecified hard dependency of the AWS APIs.
ENV RUNTIME_PACKAGES python nginx gettext curl jq
ENV BUILD_PACKAGES py-pip

WORKDIR /opt/stevedor
RUN apk --no-cache -U add $RUNTIME_PACKAGES $BUILD_PACKAGES && \
    pip install --upgrade pip awscli && \
    mkdir -p /run/nginx && \
    apk --no-cache -U del $BUILD_PACKAGES

ADD src /opt/stevedor

EXPOSE 8080

CMD ["./run.sh"]
