32 lines
888 B
Docker
32 lines
888 B
Docker
FROM artifactory.turkcell.com.tr/local-docker-dist-dev/com/turkcell/ai-platform/aip/ubi8/python38:0.1.0
|
|
|
|
LABEL maintainer="Mahmut YILMAZ <yilmaz.mahmut@turkcell.com.tr>"
|
|
|
|
ENV AIP_APP_USER=appuser
|
|
ENV APP_DIR_HOME=/home/appuser
|
|
ENV IN_CONTAINER=1
|
|
ENV TZ=Europe/Istanbul
|
|
ENV TLDEXTRACT_CACHE=/home/appuser/.cache
|
|
|
|
USER root
|
|
|
|
COPY . ${APP_DIR_HOME}
|
|
WORKDIR ${APP_DIR_HOME}
|
|
|
|
RUN pip3 install --timeout=10000 --no-cache-dir --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org \
|
|
--index-url https://artifactory.turkcell.com.tr/artifactory/api/pypi/virtual-pypi/simple \
|
|
-r ${APP_DIR_HOME}/requirements.txt
|
|
|
|
#COPY ./src ${APP_DIR_HOME}
|
|
|
|
RUN \
|
|
chgrp -R 0 $APP_DIR_HOME && \
|
|
chmod -R g+rx $APP_DIR_HOME
|
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
USER $AIP_APP_USER
|
|
|
|
CMD ["python3", "-u", "src/main.py"]
|
|
|