Skip to content

Commit

Permalink
come on now
Browse files Browse the repository at this point in the history
  • Loading branch information
lianos committed Dec 13, 2023
1 parent 8714539 commit dbec6a7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
3 changes: 2 additions & 1 deletion facilebio/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
FROM facilebio/facilebio_base_extra:latest
LABEL maintainer="Steve Lianoglou ([email protected])"

Expand All @@ -8,7 +9,7 @@ LABEL maintainer="Steve Lianoglou ([email protected])"
# RUN dat

RUN --mount=type=secret,id=GITHUB_PAT \
GITHUB_PAT="$(cat /run/secrets/GITHUB_PAT)" \
GITHUB_PAT=$(cat /run/secrets/GITHUB_PAT) \
Rscript -e "library(BiocManager); install(c(\
'facilebio/FacileData', \
'facilebio/FacileBiocData', \
Expand Down
27 changes: 24 additions & 3 deletions facilebio/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
TAG="facilebio/facilebio"
VERSION="latest"
imagename="facilebio/facilebio"
version="latest"
tag=${imagename}:${version}

dockerdir=.
secretfile=${dockerdir}/.env
dockerfile=${dockerdir}/Dockerfile

# docker build customizations -------------------------------------------------
ifdef nocache
cache_directive=--no-cache
else
cache_directive=
endif

progress?=plain

build:
docker build --no-cache -t $(TAG):$(VERSION) .
DOCKER_BUILDKIT=1 docker build \
--progress ${progress} \
${cache_directive} \
--secret id=GITHUB_PAT \
-f ${dockerfile} \
-t ${tag} \
${dockerdir} \
--platform linux/amd64

inspect:
docker run --rm -it \
Expand Down

0 comments on commit dbec6a7

Please sign in to comment.