# This is nrao:workflow
FROM marconi.aoc.nrao.edu/ops/base:workspaces

# Get workflow code into the image
WORKDIR /code

COPY ./services/workflow ./

WORKDIR /packages/
COPY ./shared ./shared
COPY ./apps/cli ./apps/cli
COPY ./testing ./testing

# Python library installation
WORKDIR /code/
RUN pip install -r requirements.txt \
    && python setup.py develop

# Set Capo 
ARG capo_env=docker
ENV CAPO_PROFILE $capo_env

CMD ["pserve", "--reload", "development.ini"]