FROM nginx:alpine as production MAINTAINER isard RUN apk add --no-cache python3 py3-pip RUN pip3 install --upgrade pip RUN apk add --no-cache --virtual .build_deps \ build-base \ python3-dev \ libffi-dev COPY ./requirements.pip3 /requirements.pip3 RUN pip3 install --no-cache-dir -r requirements.pip3 RUN apk del .build_deps RUN apk add curl py3-yaml COPY ./src /api #EXPOSE 7039 #WORKDIR /api #CMD [ "python3", "start.py" ] COPY default.conf /etc/nginx/conf.d/default.conf ADD entrypoint.sh /docker-entrypoint.d/ RUN chmod 775 /docker-entrypoint.d/entrypoint.sh