-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ ARG IMAGE_VERSION="latest" | |
# PECAN FOR MODEL BASE IMAGE | ||
# -------------------------------------------------------------------------- | ||
FROM pecan/base:${IMAGE_VERSION} | ||
LABEL maintainer="Tezan Sahu <[email protected]>" | ||
|
||
EXPOSE 8000 | ||
|
||
|
@@ -15,9 +14,7 @@ EXPOSE 8000 | |
# -------------------------------------------------------------------------- | ||
|
||
# COMMAND TO RUN | ||
RUN --mount=type=secret,id=github_token \ | ||
export GITHUB_PAT=`cat /run/secrets/github_token` \ | ||
&& apt-get update \ | ||
RUN apt-get update \ | ||
&& apt-get install libsodium-dev -y \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& Rscript -e "devtools::install_version('promises', '1.1.0')" \ | ||
|
@@ -35,7 +32,6 @@ ENV AUTH_REQ="TRUE" \ | |
SECRET_KEY_BASE="thisisnotasecret" | ||
|
||
WORKDIR /api/R | ||
|
||
CMD Rscript entrypoint.R | ||
|
||
COPY ./ /api | ||
|
||
CMD ["Rscript", "entrypoint.R"] |