RUN --mount=type=cache,target=/app/target \
cp target/debug/lemmy_server lemmy_server
-FROM peaceiris/mdbook:v0.3.7 as docs
-WORKDIR /app
-COPY docs ./docs
-RUN mdbook build docs/
-
FROM ubuntu:20.10
# Install libpq for postgres and espeak
# Copy resources
COPY config/defaults.hjson /config/defaults.hjson
COPY --from=rust /app/lemmy_server /app/lemmy
-COPY --from=docs /app/docs/book/ /app/documentation/
EXPOSE 8536
CMD ["/app/lemmy"]