|
|
@@ -1,6 +1,18 @@ |
|
|
|
FROM django:onbuild |
|
|
|
FROM python:3.5 |
|
|
|
|
|
|
|
RUN mkdir /backend |
|
|
|
WORKDIR /backend |
|
|
|
RUN apt-get update && apt-get install -y \ |
|
|
|
netcat |
|
|
|
supervisor \ |
|
|
|
netcat \ |
|
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
ADD requirements.txt /backend/ |
|
|
|
RUN pip install -r requirements.txt |
|
|
|
ADD . /backend/ |
|
|
|
|
|
|
|
CMD ./start.sh |
|
|
|
COPY entrypoint.sh / |
|
|
|
RUN chmod 755 /entrypoint.sh |
|
|
|
ENTRYPOINT ["/entrypoint.sh"] |
|
|
|
|
|
|
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf |
|
|
|
CMD ["/usr/bin/supervisord"] |