]> Untitled Git - lemmy.git/commitdiff
added deps - git and ca-certificates (for federation to work) and changed adduser...
authorMarty <saint@ghost.lt>
Mon, 6 Dec 2021 00:35:50 +0000 (02:35 +0200)
committerGitHub <noreply@github.com>
Mon, 6 Dec 2021 00:35:50 +0000 (01:35 +0100)
docker/prod/Dockerfile.arm

index fd1ad4066e11de15bd540c0b492f98c810a6f2f8..c1f0f5ed52234a8cbe737b05dafe05420f241bdc 100644 (file)
@@ -5,7 +5,7 @@ FROM $RUST_BUILDER_IMAGE as builder
 
 # Install compilation dependencies
 RUN apt-get update \
 
 # Install compilation dependencies
 RUN apt-get update \
- && apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev \
+ && apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev git \
  && rm -rf /var/lib/apt/lists/*
 
 WORKDIR /app
  && rm -rf /var/lib/apt/lists/*
 
 WORKDIR /app
@@ -25,11 +25,11 @@ FROM debian:buster-slim as lemmy
 
 # Install libpq for postgres
 RUN apt-get update \
 
 # Install libpq for postgres
 RUN apt-get update \
- && apt-get -y install --no-install-recommends postgresql-client libc6 libssl1.1 \
+ && apt-get -y install --no-install-recommends postgresql-client libc6 libssl1.1 ca-certificates \
  && rm -rf /var/lib/apt/lists/*
 
 RUN addgroup --gid 1000 lemmy
  && rm -rf /var/lib/apt/lists/*
 
 RUN addgroup --gid 1000 lemmy
-RUN adduser --no-create-home --shell /bin/sh --uid 1000 --gid 1000 lemmy
+RUN useradd --no-create-home --shell /bin/sh --uid 1000 --gid 1000 lemmy
 
 # Copy resources
 COPY --chown=lemmy:lemmy --from=builder /app/lemmy_server /app/lemmy
 
 # Copy resources
 COPY --chown=lemmy:lemmy --from=builder /app/lemmy_server /app/lemmy