ARG base_image

FROM $base_image

ARG VERSION
ARG NAME
ARG ROUTE

COPY ./nginx/conf.d/app_custom.conf /etc/nginx/conf.d/app_custom.conf
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY uwsgi.ini /etc/uwsgi/

WORKDIR /app
COPY ./app /app
COPY ./app/requirements.txt /app

ENV LANG="en_US.UTF-8"
ENV API_VERSION=$VERSION
ENV NAME=$NAME
ENV CUSTOM_APP_ROUTE=$ROUTE

RUN pip3 install -r requirements.txt
