Fix to dockerfile

This commit is contained in:
Dessalines 2019-04-09 21:45:21 -07:00
parent 655e84a87f
commit 85a7e2a8c9
1 changed files with 4 additions and 2 deletions

View File

@ -1,12 +1,14 @@
FROM node:10-jessie as node FROM node:10-jessie as node
#If encounter Invalid cross-device error -run on host 'echo N | sudo tee /sys/module/overlay/parameters/metacopy' #If encounter Invalid cross-device error -run on host 'echo N | sudo tee /sys/module/overlay/parameters/metacopy'
COPY server/ui /app/server/ui COPY server/ui /app/server/ui
RUN cd /app/server/ui && yarn && yarn build WORKDIR /app/server/ui
RUN yarn
RUN yarn build
FROM rust:1.33 as rust FROM rust:1.33 as rust
COPY server/service /app/server/service COPY server/service /app/server/service
WORKDIR /app/server/service WORKDIR /app/server/service
RUN cd /app/server/service && cargo build --release RUN cargo build --release
FROM debian:jessie-slim as volume FROM debian:jessie-slim as volume
COPY torrents.csv /db/ COPY torrents.csv /db/