-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (19 loc) · 617 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
27
28
29
FROM python:3.7-alpine
MAINTAINER Arie Lev
ENV PYTHONUNBUFFERED 1
ARG PYPI_REPO="https://pypi.python.org/simple"
ENV PYPI_REPO $PYPI_REPO
RUN mkdir /nalkinscloud-api
WORKDIR /nalkinscloud-api
# Needed for mysqlclient requirement when using python alpine image
RUN apk add --no-cache mariadb-dev build-base libffi-dev
ADD src /nalkinscloud-api
RUN pip install \
--index-url $PYPI_REPO \
--requirement requirements.txt
# Cleanup
ENV PYPI_REPO 'None'
ADD entrypoint.sh /nalkinscloud-api
RUN chmod +x entrypoint.sh
RUN chmod 755 -R /nalkinscloud-api
ENTRYPOINT ["sh", "/nalkinscloud-api/entrypoint.sh"]