-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (24 loc) · 923 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#build from ubntu 16.04
FROM ubuntu:16.04
MAINTAINER Michael Barry "[email protected]"
#Update Software Repo
RUN apt-get update && \
apt-get install -y wget
RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' >> /etc/apt/sources.list.d/pgdg.list
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN apt-get update && \
apt-get install -y python3 && \
apt-get install -y python3-pip && \
apt-get install -y postgresql-client-10 && \
apt-get install build-essential libssl-dev libffi-dev python3-dev
RUN pip3 install sh azure
RUN apt-get install cron
RUN echo "update"
RUN mkdir /scripts
ADD backup.py /scripts
ADD restore.py /scripts
ADD cron_config /etc/cron.d/cron_config
ADD startup.sh /scripts/startup.sh
RUN chmod 0644 /etc/cron.d/cron_config
RUN ["chmod", "+x", "/scripts/startup.sh"]
WORKDIR /scripts