mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-05 12:05:01 +00:00
Some docker caching fixes.
This commit is contained in:
parent
234d5bd5a2
commit
e0d9a59f76
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
2
docker_update.sh
Executable file
2
docker_update.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
git pull
|
||||
docker-compose up -d --no-deps --build
|
Loading…
Reference in a new issue