huawei-3G-SMS-API/Dockerfile

21 lines
633 B
Docker
Raw Normal View History

2023-02-21 14:22:54 -05:00
FROM "python:3.11-alpine"
2019-08-06 11:24:49 -04:00
LABEL maintainer="Cabillot Julien <dockerimages@cabillot.eu>"
COPY app /app
2019-08-06 11:42:51 -04:00
COPY entrypoint.sh /app/entrypoint.sh
2019-08-06 11:24:49 -04:00
WORKDIR "/app"
2023-02-21 14:22:54 -05:00
# ntfy est pas encore dispo en dehors de testing sur alpine actuellement
RUN pip install --no-cache-dir --requirement requirements.txt && \
2023-02-21 14:29:45 -05:00
wget https://github.com/binwiederhier/ntfy/releases/download/v2.0.1/ntfy_2.0.1_linux_armv7.tar.gz && \
tar zxvf ntfy_2.0.1_linux_armv7.tar.gz && \
cp -a ntfy_2.0.1_linux_armv7/ntfy /usr/local/bin && \
mkdir /etc/ntfy && \
rm -rf ntfy_2.0.1* && \
2023-02-21 14:22:54 -05:00
ntfy --help
2019-08-06 11:24:49 -04:00
2019-08-06 11:36:47 -04:00
#USER "nobody"
2019-08-06 11:24:49 -04:00
2019-08-06 11:35:42 -04:00
ENTRYPOINT [ "/app/entrypoint.sh" ]