Commit 9f0083f4 authored by R01's avatar R01 🌵
Browse files

Init script (testing needed). Img should be shrinked.

parent e039400f
......@@ -2,7 +2,9 @@ FROM perl:5-buster
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y install build-essential libssl-dev
RUN cpan Carton
COPY ./ /opt
RUN mkdir -p /opt/delete_after_delay
COPY ./ ./delete_after_delay ./cpanfile.snapshot ./cpanfile /opt/delete_after_delay/
WORKDIR /opt/delete_after_delay
RUN carton install
CMD /bin/bash while true; do sleep 1; done
COPY ./docker/init /
CMD /init
export CF=/etc/delete_after_delay.yml
echo 'instanceD:' > $CF
echo " key: $KEY" >> $CF
echo " dir: $DIR" >> $CF
echo " url: $URL" >> $CF
echo " del: $DEL" >> $CF
/opt/delete_after_delay/delete_after_delay -vd -i instanceD
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment