Dockerfile 565 B

1234567891011121314151617181920212223242526272829
  1. FROM alpine:3.7
  2. LABEL maintainer="robert.gauto@gmail.com"
  3. RUN set -x; \
  4. apk update && \
  5. apk upgrade && \
  6. apk add --no-cache \
  7. python \
  8. py2-pip && \
  9. pip install --upgrade pip && \
  10. mkdir -p /opt/odoo && \
  11. chmod -R 777 /opt/odoo
  12. # COPY entrypoint.sh /
  13. # RUN chmod +x entrypoint.sh
  14. COPY ./app ./app
  15. WORKDIR ./app
  16. RUN set -x; \
  17. pip install -r requirements.txt && \
  18. python manage.py migrate
  19. VOLUME ["/opt/odoo", "/app/odoo_control"]
  20. EXPOSE 8000
  21. CMD ["gunicorn", "odoo_control.wsgi"]