# Dockerfile for NEON IS Data Processing - Calibration package
# Example command (run from project parent directory to include pack/ path in Docker context):
# docker build --no-cache -t neon-is-pack-cal-r ./pack/NEONprocIS.cal

# Start with the neon-is-base-r image. 
FROM quay.io/battelleecology/neon-is-base-r:v1.4.7-aa651ed4

# maintainer handle
MAINTAINER "Cove Sturtevant" csturtevant@battelleecology.org

# copy the NEONprocIS.qaqc package from local
COPY ./ /pack/NEONprocIS.cal/

# Install devtools & renv (package manager), restore from specific versions of dependencies, install NEONprocIS.base from local, and clean up afterwards. 
RUN R -e 'renv::restore(lockfile="pack/NEONprocIS.cal/renv.lock")' && \
    R -e 'renv::install("/pack/NEONprocIS.cal")' && \
    rm -rf /pack


