cic-ussd files

This commit is contained in:
Blair Vanderlugt 2021-02-05 20:53:21 -08:00
parent a50e469eb6
commit cd4508e343

View File

@ -14,22 +14,33 @@ RUN apk add --update musl-dev gcc libffi-dev
# create application directory
RUN mkdir -vp cic-ussd
# copy all necessary files
COPY *requirements.txt cic-ussd/
COPY setup.* cic-ussd/
COPY cic_ussd/ cic-ussd/cic_ussd/
COPY scripts/ cic-ussd/scripts/
COPY states/ cic-ussd/states/
COPY transitions/ cic-ussd/transitions/
COPY var/ cic-ussd/var/
COPY docker/*.sh /root/
COPY cic-ussd/setup.cfg \
cic-ussd/setup.py \
cic-ussd/
RUN chmod +x /root/*.sh
COPY cic-ussd/requirements.txt \
cic-ussd/test_requirements.txt \
cic-ussd/
# install requirements
RUN cd cic-ussd && \
pip install -r requirements.txt $pip_extra_index_url_flag
pip install -r requirements.txt $pip_extra_index_url_flag
# copy all necessary files
COPY cic-ussd/cic_ussd/ cic-ussd/cic_ussd/
COPY cic-ussd/scripts/ cic-ussd/scripts/
COPY cic-ussd/states/ cic-ussd/states/
COPY cic-ussd/transitions/ cic-ussd/transitions/
COPY cic-ussd/var/ cic-ussd/var/
COPY cic-ussd/docker/db.sh \
cic-ussd/docker/start_tasker.sh \
cic-ussd/docker/start_uwsgi.sh \
/root/
RUN chmod +x /root/*.sh
# copy config and migration files to definitive file so they can be referenced in path definitions for running scripts
COPY .config/ /usr/local/etc/cic-ussd/
COPY cic_ussd/db/migrations/ /usr/local/share/cic-ussd/alembic
COPY cic-ussd/.config/ /usr/local/etc/cic-ussd/
COPY cic-ussd/cic_ussd/db/migrations/ /usr/local/share/cic-ussd/alembic