Skip to content

Commit

Permalink
copy only needed files to /workflow.data.preparation/ in Docker ima…
Browse files Browse the repository at this point in the history
…ge (#175)
  • Loading branch information
cjyetman authored Feb 26, 2024
1 parent eba71ae commit bd6b996
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ RUN Rscript -e '\
)) \
'

COPY .env /.env
COPY DESCRIPTION /DESCRIPTION
WORKDIR /workflow.data.preparation
COPY .env DESCRIPTION ./

RUN Rscript -e '\
readRenviron(".env"); \
pak::local_install_deps(); \
'

COPY . /
COPY .git/ ./.git/
COPY config.yml run_pacta_data_preparation.R ./

CMD Rscript run_pacta_data_preparation.R

0 comments on commit bd6b996

Please sign in to comment.