-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (21 loc) · 834 Bytes
/
Dockerfile
File metadata and controls
24 lines (21 loc) · 834 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
FROM python:2.7.14-alpine3.6
MAINTAINER FAN VINGA<fanalcest@gmail.com> Indexyz <r18@indexes.nu>
ADD . /usr/app
RUN apk update && apk add --virtual .build-deps \
git \
tar \
autoconf \
automake \
make \
build-base \
linux-headers && \
apk add --virtual runtime-tools \
openssl-dev \
libffi-dev && \
mkdir -p /usr/app/db && \
pip install requests[security] && \
pip install -r /usr/app/requirements.txt && \
apk del .build-deps && rm -rf /var/cache/apk/*
WORKDIR "/usr/app/db"
ENTRYPOINT ["python"]
CMD ["/usr/app/main.py"]