fix dockerfile

This commit is contained in:
Jack Robison 2022-05-18 15:37:22 -04:00
parent b873f75ff6
commit 87c8457144
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 2 additions and 3 deletions

View file

@ -28,7 +28,7 @@ RUN groupadd -g 999 $user && useradd -m -u 999 -g $user $user
RUN mkdir -p $db_dir RUN mkdir -p $db_dir
RUN chown -R $user:$user $db_dir RUN chown -R $user:$user $db_dir
COPY docker $projects_dir COPY . $projects_dir
RUN chown -R $user:$user $projects_dir RUN chown -R $user:$user $projects_dir
USER $user USER $user

View file

@ -4,10 +4,9 @@
TARGET_HOST=$1 TARGET_HOST=$1
SCRIPTS_DIR=`dirname $0` SCRIPTS_DIR=`dirname $0`
SCRIBE_DIR=`dirname $SCRIPTS_DIR`
# build the image # 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"` IMAGE=`docker image inspect lbry/scribe:development | sed -n "s/^.*Id\":\s*\"sha256:\s*\(\S*\)\".*$/\1/p"`
# push the image to the server # push the image to the server