mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-21 22:27:08 +00:00
added deps - git and ca-certificates (for federation to work) and changed adduser to useradd so that user can be added non-interactively (#1976)
This commit is contained in:
parent
4e9ecb2632
commit
8ce0c6d618
|
@ -5,7 +5,7 @@ FROM $RUST_BUILDER_IMAGE as builder
|
|||
|
||||
# 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
|
||||
|
@ -25,11 +25,11 @@ FROM debian:buster-slim as lemmy
|
|||
|
||||
# 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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue