Skip to content

Commit

Permalink
missing api app
Browse files Browse the repository at this point in the history
  • Loading branch information
robkooper committed Sep 2, 2024
1 parent 91f9088 commit 465f4e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ jobs:
name:
- docs
- executor
- api
include:
- name: docs
CONTEXT: .
Expand All @@ -430,6 +431,11 @@ jobs:
DOCKERFILE: docker/executor/Dockerfile
PLATFORM: "linux/amd64"
IMAGE: executor
- name: api
CONTEXT: apps/api
DOCKERFILE: apps/api/Dockerfile
PLATFORM: "linux/amd64"
IMAGE: api

steps:
- uses: actions/checkout@v4
Expand Down
10 changes: 3 additions & 7 deletions apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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')" \
Expand All @@ -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"]

0 comments on commit 465f4e8

Please sign in to comment.