2019-04-06 01:29:20 -04:00
|
|
|
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
|
2019-04-10 00:45:10 -04:00
|
|
|
WORKDIR /app/ui
|
|
|
|
RUN yarn
|
|
|
|
RUN yarn build
|
2019-04-06 01:29:20 -04:00
|
|
|
|
|
|
|
FROM rust:1.33 as rust
|
|
|
|
COPY server /app/server
|
2019-04-09 18:33:49 -04:00
|
|
|
WORKDIR /app/server
|
2019-04-06 01:29:20 -04:00
|
|
|
COPY --from=node /app/ui/dist /app/dist
|
2019-04-09 18:33:49 -04:00
|
|
|
RUN cargo build --release
|
2019-04-06 01:29:20 -04:00
|
|
|
RUN mv /app/server/target/release/lemmy /app/
|
2019-04-06 19:48:54 -04:00
|
|
|
EXPOSE 8536
|