forked from krlem/PythonAPIContainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (18 loc) · 860 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
FROM alpine:3.8
MAINTAINER Jonathan Gonzalez <[email protected]> @EA1HET
RUN apk add --no-cache python3 \
&& python3 -m ensurepip \
&& pip3 install -U pip \
&& rm -rf /usr/lib/python*/ensurepip \
&& rm -rf /root/.cache \
&& rm -rf /var/cache/apk/* \
&& find / \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
-exec rm -rf '{}' + \
&& mkdir /app
EXPOSE 5000
WORKDIR /app
COPY . /app
RUN pip install --no-cache-dir -r requirements.txt
ENTRYPOINT /app/boot.sh