ajout curl + explication pourquoi root

This commit is contained in:
root 2017-11-07 13:22:24 +01:00
parent b598969169
commit 5cb994532f

View File

@ -1,10 +1,13 @@
FROM "alpine:3.6" FROM "alpine:3.6"
MAINTAINER "Julien Cabillot <dockerimages@cabillot.eu>" MAINTAINER "Julien Cabillot <dockerimages@cabillot.eu>"
RUN apk add --no-cache tini # Ce projet tourne en root, mais je ne voit pas encore comment l'en empecher.
# Par défaut cron doit pouvoir changer de user pour lire chaque crontab.
# En forcant un user comme guest, même avec un shell cela ne fonctionne pas.
RUN apk add --no-cache tini curl
COPY "run.sh" "/" COPY "run.sh" "/"
ENTRYPOINT [ "/sbin/tini", "--" ] ENTRYPOINT [ "/sbin/tini", "--" ]
CMD [ "/run.sh" ] CMD [ "/run.sh" ]
#CMD ["/usr/sbin/crond", "-f"]