Dockerfile 629 B

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