# FROM python:3.8-slim-buster FROM ssa-containers.aoc.nrao.edu/ops/base:workspaces # Installing Oracle instant client WORKDIR /opt/oracle RUN apt-get update && apt-get install -y libaio1 wget unzip \ && wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip \ && unzip instantclient-basiclite-linuxx64.zip \ && rm -f instantclient-basiclite-linuxx64.zip \ && cd /opt/oracle/instantclient* \ && rm -f *jdbc* *occi* *mysql* *README *jar uidrvci genezi adrci \ && echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf \ && ldconfig # Set Capo ARG capo_env=dsoc-dev ENV CAPO_PROFILE $capo_env # Get workflow code into the image WORKDIR /packages/ COPY ./shared ./shared COPY ./apps/cli ./apps/cli COPY ./testing ./testing WORKDIR /code COPY ./services/workflow ./ RUN pip3 install pipenv RUN pipenv install EXPOSE 8000 RUN pip install -r requirements.txt \ && python setup.py develop # For this statement to work you need to add the next two lines into Pipfilefile # [scripts] # server = "python manage.py runserver 0.0.0.0:8000" # ENTRYPOINT ["pipenv", "run", "server"] WORKDIR /packages/apps/cli/executables/productfetcher/tests RUN pytest # RUN python setup.py develop CMD ["pserve", "--reload", "/code/dev.ini"]