Skip to content

Commit

Permalink
Use COPY instead of ADD
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmlft committed Dec 10, 2024
1 parent b537fb2 commit 5c8a292
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ COPY --from=base /app .

# Install omopcat package
# Put package in a subdirectory to avoid overwriting renv files from previous stage
ADD app ./pkg
COPY app ./pkg
RUN R -e 'devtools::install("pkg", dependencies = FALSE)'

EXPOSE 3838
Expand Down
2 changes: 1 addition & 1 deletion preprocessing/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ COPY --from=base /pkg .

# Install omopcat.preprocessing package
# Put package in a subdirectory to avoid overwriting renv files from previous stage
ADD preprocessing ./pkg
COPY preprocessing ./pkg
RUN R -e 'devtools::install("pkg", dependencies = FALSE)'

CMD ["R", "-e", "omopcat.preprocessing::preprocess()"]

0 comments on commit 5c8a292

Please sign in to comment.