forked from anujith-singh/db-archiver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (20 loc) · 817 Bytes
/
Dockerfile
File metadata and controls
31 lines (20 loc) · 817 Bytes
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
27
28
29
30
31
FROM python:3.7-stretch
ENV PERCONA_TOOLKIT_VERSION 3.0.13
RUN apt-get update
RUN wget --quiet --output-document=/tmp/percona-toolkit.deb https://www.percona.com/downloads/percona-toolkit/${PERCONA_TOOLKIT_VERSION}/binary/debian/stretch/x86_64/percona-toolkit_${PERCONA_TOOLKIT_VERSION}-1.stretch_amd64.deb
# verifying download
COPY percona-toolkit-checksum percona-toolkit-checksum
RUN sha512sum -c percona-toolkit-checksum
RUN apt-get install -y /tmp/percona-toolkit.deb
# clean up
RUN rm /tmp/percona-toolkit.deb
RUN apt-get -y auto-remove
RUN rm -rf /var/lib/apt/lists/*
ENV APP_DIR /app
WORKDIR ${APP_DIR}
COPY requirements.lock ${APP_DIR}/
RUN pip install -r requirements.lock
COPY . ${APP_DIR}
# Provide execute access
RUN chmod +x /app/docker-entrypoint.sh
ENTRYPOINT ["/app/docker-entrypoint.sh"]