Skip to content

Commit

Permalink
Added secrets mount in achilles dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alondhe committed Jan 4, 2024
1 parent 9dc99e5 commit 29ae568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions achilles/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM docker.io/rocker/r-ver:4.2.3

RUN echo 'GITHUB_PAT=' /run/secrets/GITHUB_PAT >> /root/.Renviron
RUN GITHUB_PAT=$(cat /run/secrets/GITHUB_PAT)
RUN --mount=type=secret,id=GITHUB_PAT \
GITHUB_PAT=$(cat /run/secrets/GITHUB_PAT)

RUN <<EOF
apt-get update
Expand Down

0 comments on commit 29ae568

Please sign in to comment.