FROM lofarit/base3.10

#------------------------
# Get prefactor
#------------------------
USER root
RUN cd /opt && git clone https://github.com/lofar-astron/prefactor
RUN cd /opt/prefactor && git pull && git checkout d4f18ff # V3.0 tag hash
USER lofar

# Add conf and run scripts
COPY pipeline.cfg /home/vanilla_lofar/pipeline.cfg
COPY Pre-Facet-Calibrator.parset /home/vanilla_lofar/Pre-Facet-Calibrator.parset
COPY Pre-Facet-Target.parset /home/vanilla_lofar/Pre-Facet-Target.parset

ENV CONTAINER_NAME='prefactor3_base3.10'
