no cron, python 3.8
This commit is contained in:
parent
059535f687
commit
a9cb521e66
12
Dockerfile
12
Dockerfile
|
@ -1,4 +1,4 @@
|
||||||
FROM python:3.8-rc-alpine
|
FROM python:3.8-alpine
|
||||||
|
|
||||||
WORKDIR /opt/miscale
|
WORKDIR /opt/miscale
|
||||||
COPY src /opt/miscale
|
COPY src /opt/miscale
|
||||||
|
@ -19,11 +19,11 @@ RUN apk update && \
|
||||||
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
RUN mkdir -p /var/log/cron \
|
# RUN mkdir -p /var/log/cron \
|
||||||
&& mkdir -m 0644 -p /var/spool/cron/crontabs \
|
# && mkdir -m 0644 -p /var/spool/cron/crontabs \
|
||||||
&& touch /var/log/cron/cron.log \
|
# && touch /var/log/cron/cron.log \
|
||||||
&& mkdir -m 0644 -p /etc/cron.d && \
|
# && mkdir -m 0644 -p /etc/cron.d && \
|
||||||
echo -e "*/5 * * * * python3 /opt/miscale/Xiaomi_Scale.py\n" >> /var/spool/cron/crontabs/root
|
# echo -e "@reboot python3 /opt/miscale/Xiaomi_Scale.py\n" >> /var/spool/cron/crontabs/root
|
||||||
|
|
||||||
## Cleanup
|
## Cleanup
|
||||||
RUN apk del alpine-sdk gcc make tar
|
RUN apk del alpine-sdk gcc make tar
|
||||||
|
|
Loading…
Reference in a new issue