2018-10-31 15:07:28 +00:00
|
|
|
FROM python:alpine
|
|
|
|
MAINTAINER Jakub Sokołowski <jakub@status.im>
|
|
|
|
|
|
|
|
ENV CONAN_PORT 9300
|
|
|
|
ENV CONAN_WORKERS 4
|
|
|
|
ENV CONAN_TIMEOUT 300
|
2018-11-01 12:51:14 +00:00
|
|
|
ENV CONAN_HOME /root/.conan_server
|
2018-10-31 15:07:28 +00:00
|
|
|
|
|
|
|
ARG CONAN_VERSION
|
|
|
|
ARG GUNICORN_VERSION
|
|
|
|
|
|
|
|
# Install dependencies so they get cached with the image
|
|
|
|
VOLUME /var/lib/conan
|
|
|
|
RUN apk update && \
|
|
|
|
apk add musl-dev gcc && \
|
|
|
|
pip install --no-cache-dir \
|
|
|
|
conan==${CONAN_VERSION} \
|
|
|
|
gunicorn==${GUNICORN_VERSION}
|
|
|
|
|
|
|
|
# Run uwsgi listening on port 9300
|
|
|
|
EXPOSE ${CONAN_PORT}
|
|
|
|
|
|
|
|
LABEL source="https://github.com/status-im/infra-utils"
|
|
|
|
LABEL description="Conan server repository service"
|
|
|
|
LABEL maintainer="jakub@status.im"
|
|
|
|
|
2018-11-01 12:16:27 +00:00
|
|
|
WORKDIR /var/lib/conan
|
|
|
|
|
2018-10-31 15:07:28 +00:00
|
|
|
COPY ./entrypoint.sh /entrypoint.sh
|
|
|
|
CMD ["/bin/sh", "/entrypoint.sh"]
|