-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (34 loc) · 920 Bytes
/
Dockerfile
File metadata and controls
40 lines (34 loc) · 920 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
32
33
34
35
36
37
38
39
40
FROM python:3.8.6-alpine3.12
LABEL maintainer="leonsp@ca.ibm.com"
# Install database clients
# Apply security patches
# hadolint ignore=DL3018
RUN echo 'http://dl-3.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
&& echo 'http://dl-3.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
&& apk add --no-cache \
bash \
curl \
libressl \
mariadb-client \
mongodb-tools \
mysql=5.7.30 \
postgresql \
tini \
&& apk add --upgrade --no-cache \
db \
expat \
freetype \
fontconfig \
libpng \
ncurses \
zlib
# RUN curl -sL https://sentry.io/get-cli/ | bash
##########
# Backwork
##########
COPY requirements.txt ./
RUN pip install -r ./requirements.txt
COPY ./docker-entrypoint.sh /
VOLUME ["/backups"]
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/docker-entrypoint.sh"]