mirror of https://github.com/LemmyNet/lemmy.git
Some docker caching fixes.
parent
c725b7a09b
commit
16f3df5635
|
@ -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
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
git pull
|
||||
docker-compose up -d --no-deps --build
|
Loading…
Reference in New Issue