2018-11-25 08:37:51 +00:00
|
|
|
FROM ubuntu:18.04
|
2018-11-23 10:30:44 +00:00
|
|
|
|
2018-11-26 11:21:39 +00:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends curl cron awscli
|
|
|
|
RUN rm -rf /var/lib/apt/lists/*
|
2018-11-23 10:30:44 +00:00
|
|
|
|
|
|
|
# https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-convenience-script
|
|
|
|
RUN curl -fsSL get.docker.com -o get-docker.sh
|
|
|
|
RUN sh get-docker.sh
|
|
|
|
|
2018-11-28 09:28:52 +00:00
|
|
|
COPY ./src/entrypoint.sh /root/
|
|
|
|
COPY ./src/backup.sh /root/
|
2018-11-26 09:46:26 +00:00
|
|
|
RUN chmod a+x /root/entrypoint.sh
|
2018-11-23 10:30:44 +00:00
|
|
|
RUN chmod a+x /root/backup.sh
|
|
|
|
|
2018-11-26 09:46:26 +00:00
|
|
|
WORKDIR /root
|
|
|
|
CMD [ "/root/entrypoint.sh" ]
|