]> Untitled Git - lemmy.git/blobdiff - docker/prod/Dockerfile.arm
For untagged commits, include hash in version name (fixes #1563)
[lemmy.git] / docker / prod / Dockerfile.arm
index 61d1f86c9c2bbc6695c3e90675231ee31a669353..01f24456e239d3a54a306c31f7508d734b2c6d0f 100644 (file)
@@ -11,6 +11,7 @@ RUN apt-get update \
 WORKDIR /app
 
 COPY ./ ./
+RUN echo "pub const VERSION: &str = \"$(git describe --tag)\";" > "crates/utils/src/version.rs"
 
 RUN cargo build --release
 
@@ -22,9 +23,9 @@ RUN cp ./target/release/lemmy_server /app/lemmy_server
 # The Debian runner
 FROM debian:buster-slim as lemmy
 
-# Install libpq for postgres and espeak for captchas
+# Install libpq for postgres
 RUN apt-get update \
- && apt-get -y install --no-install-recommends espeak postgresql-client libc6 libssl1.1 \
+ && apt-get -y install --no-install-recommends postgresql-client libc6 libssl1.1 \
  && rm -rf /var/lib/apt/lists/*
 
 RUN addgroup --gid 1000 lemmy