From: Dessalines Date: Wed, 17 Apr 2019 23:55:57 +0000 (-0700) Subject: Some docker caching fixes. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%7BpictshareAvatarThumbnail%28?a=commitdiff_plain;h=16f3df563510c13fc7ea02070d510b5663d5c47a;p=lemmy.git Some docker caching fixes. --- diff --git a/Dockerfile b/Dockerfile index 01a75850..09875849 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,10 @@ FROM node:10-jessie as node #If encounter Invalid cross-device error -run on host 'echo N | sudo tee /sys/module/overlay/parameters/metacopy' -COPY ui /app/ui WORKDIR /app/ui -RUN yarn + +COPY ui/package.json ui/yarn.lock ./ +RUN yarn install --pure-lockfile # This caches your deps +COPY ui /app/ui RUN yarn build FROM rust:1.33 as rust diff --git a/docker_update.sh b/docker_update.sh new file mode 100755 index 00000000..e51bd820 --- /dev/null +++ b/docker_update.sh @@ -0,0 +1,2 @@ +git pull +docker-compose up -d --no-deps --build