17 lines
472 B
Docker
17 lines
472 B
Docker
FROM python:3.8
|
|
|
|
RUN apt-get update && apt-get install -y git
|
|
RUN git clone http://192.168.1.25:8124/zep/Substack_JV.git /app
|
|
WORKDIR /app
|
|
|
|
RUN pip install --upgrade pip
|
|
COPY requirements.txt .
|
|
RUN pip install -r requirements.txt
|
|
|
|
ENV TZ=Europe/Brussels
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
COPY update_and_run.sh /app
|
|
RUN chmod +x /app/update_and_run.sh
|
|
CMD ["./update_and_run.sh"]
|
|
ENTRYPOINT ["sh", "-c", "./update_and_run.sh"] |