mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-17 18:04:01 +00:00
6af75492a9
* Replace Iframely. Fixes #1681 * Add post_link_tags to nginx * Adding post_link_tags route * Cleaning up post_link_tags * Changing PostLink to SiteMetadata, adding it to the API. * Fixing issue when local has no openssl certs. * Fixing an issue with pictrs errors * Revert "Fixing issue when local has no openssl certs." This reverts commit dbf7d1b1ee03846e5ef7b7156e618424f1150e1d. * Add ca-certs to dockerfile for volume mount. * Cleaning up fetch_pictrs request * Changing to fetch_site_data
31 lines
756 B
Docker
31 lines
756 B
Docker
# syntax=docker/dockerfile:experimental
|
|
|
|
# Warning: this will not pick up migrations unless there are code changes
|
|
FROM rust:1.51-buster as rust
|
|
|
|
ENV HOME=/home/root
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy the source folders
|
|
COPY . ./
|
|
RUN echo "pub const VERSION: &str = \"$(git describe --tag)\";" > "crates/utils/src/version.rs"
|
|
|
|
# Build for debug
|
|
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
|
--mount=type=cache,target=/app/target \
|
|
cargo build
|
|
RUN --mount=type=cache,target=/app/target \
|
|
cp target/debug/lemmy_server lemmy_server
|
|
|
|
FROM ubuntu:20.10
|
|
|
|
# Install libpq for postgres
|
|
RUN apt-get update -y
|
|
RUN apt-get install -y libpq-dev ca-certificates
|
|
|
|
# Copy resources
|
|
COPY --from=rust /app/lemmy_server /app/lemmy
|
|
|
|
EXPOSE 8536
|
|
CMD ["/app/lemmy"]
|