From 87c8457144dfc06a7e46783c6d73fafafda88b7f Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Wed, 18 May 2022 15:37:22 -0400 Subject: [PATCH] fix dockerfile --- Dockerfile | 2 +- scripts/deploy_scribe_dev.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f62dbe6..c8fd8ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,7 @@ RUN groupadd -g 999 $user && useradd -m -u 999 -g $user $user RUN mkdir -p $db_dir RUN chown -R $user:$user $db_dir -COPY docker $projects_dir +COPY . $projects_dir RUN chown -R $user:$user $projects_dir USER $user diff --git a/scripts/deploy_scribe_dev.sh b/scripts/deploy_scribe_dev.sh index c84297e..7f3c454 100755 --- a/scripts/deploy_scribe_dev.sh +++ b/scripts/deploy_scribe_dev.sh @@ -4,10 +4,9 @@ TARGET_HOST=$1 SCRIPTS_DIR=`dirname $0` -SCRIBE_DIR=`dirname $SCRIPTS_DIR` # build the image -docker build -f $SCRIBE_DIR/Dockerfile -t lbry/scribe:development $SCRIBE_DIR +docker build -t lbry/scribe:development . IMAGE=`docker image inspect lbry/scribe:development | sed -n "s/^.*Id\":\s*\"sha256:\s*\(\S*\)\".*$/\1/p"` # push the image to the server