Dockerfile 525 B

12345678910111213141516171819
  1. FROM alpine:3.7
  2. LABEL mantainer="robert.gauto@gmail.com"
  3. ENV VERSION="2.5.0"
  4. RUN set -x; \
  5. apk update && \
  6. apk upgrade && \
  7. apk add --no-cache --update python3 && \
  8. apk add --virtual --update musl-dev postgresql-dev python3-dev gcc && \
  9. wget -O- https://github.com/OmniDB/OmniDB/archive/${VERSION}.tar.gz | tar xvz && \
  10. cd OmniDB-${VERSION} && \
  11. pip3 install -r requirements.txt && \
  12. apk del musl-dev
  13. WORKDIR OmniDB-${VERSION}/OmniDB
  14. EXPOSE 8000
  15. CMD ["/usr/bin/python3", "manage.py", "runserver", "0.0.0.0:8000"]