13 lines
377 B
Docker
13 lines
377 B
Docker
FROM alpine:3.9
|
|
ADD ["requirements.txt", "/requirements.txt"]
|
|
RUN apk upgrade --update && \
|
|
apk add --update python3 build-base openldap-dev python3-dev py3-psycopg2 gettext && \
|
|
pip3 install -r /requirements.txt && rm /requirements.txt
|
|
WORKDIR /lama
|
|
EXPOSE 80
|
|
|
|
COPY entrypoint.sh /
|
|
ENTRYPOINT ["python3", "manage.py"]
|
|
CMD ["runserver", "0.0.0.0:80"]
|
|
#CMD ["/entrypoint.sh"]
|