Dockerfile 773 B

1234567891011121314151617181920212223242526272829303132333435
  1. FROM docker.io/python:2-alpine3.8
  2. RUN apk add --no-cache --virtual .nacl_deps \
  3. build-base \
  4. libffi-dev \
  5. libjpeg-turbo-dev \
  6. libressl-dev \
  7. libxslt-dev \
  8. linux-headers \
  9. postgresql-dev \
  10. su-exec \
  11. zlib-dev
  12. COPY . /synapse
  13. # A wheel cache may be provided in ./cache for faster build
  14. RUN cd /synapse \
  15. && pip install --upgrade \
  16. lxml \
  17. pip \
  18. psycopg2 \
  19. setuptools \
  20. && mkdir -p /synapse/cache \
  21. && pip install -f /synapse/cache --upgrade --process-dependency-links . \
  22. && mv /synapse/docker/start.py /synapse/docker/conf / \
  23. && rm -rf \
  24. setup.cfg \
  25. setup.py \
  26. synapse
  27. VOLUME ["/data"]
  28. EXPOSE 8008/tcp 8448/tcp
  29. ENTRYPOINT ["/start.py"]