28 lines
578 B
Docker
28 lines
578 B
Docker
FROM ubuntu:24.04
|
|
RUN apt-get update && apt-get install -y \
|
|
python3 \
|
|
python3-dev \
|
|
python3-pip \
|
|
python-is-python3 \
|
|
git \
|
|
nano \
|
|
cron \
|
|
wget \
|
|
postgresql-client \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY . /root/trackdirect
|
|
|
|
COPY crontab /etc/cron.d/crontab
|
|
RUN chmod 0644 /etc/cron.d/crontab
|
|
|
|
COPY .pgpass /root/.pgpass
|
|
RUN chmod 600 /root/.pgpass
|
|
|
|
RUN python3 -m pip config set global.break-system-packages true
|
|
RUN pip install -r /root/trackdirect/requirements.txt
|
|
|
|
RUN crontab /etc/cron.d/crontab
|
|
RUN touch /var/log/cron.log
|
|
|
|
CMD ["cron", "-f", "-l", "2"] |