summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: b17f73c0cb7ca894405d5b075ecba88e4877bab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
RUN cd /app/ui && yarn && yarn build

FROM rust:1.33 as rust
COPY server /app/server
COPY --from=node /app/ui/dist /app/dist
RUN cd /app/server && cargo build --release
RUN mv /app/server/target/release/lemmy /app/
EXPOSE 8080
WORKDIR /app/