mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-16 13:06:30 +00:00
68bcc26ff6
Also disable the actor refetch interval in debug builds.
17 lines
445 B
Docker
Vendored
17 lines
445 B
Docker
Vendored
FROM ekidd/rust-musl-builder:1.42.0-openssl11
|
|
|
|
USER root
|
|
RUN mkdir /app/dist/documentation/ -p \
|
|
&& addgroup --gid 1001 lemmy \
|
|
&& adduser --disabled-password --shell /bin/sh -u 1001 --ingroup lemmy lemmy
|
|
|
|
# Copy resources
|
|
COPY server/config/defaults.hjson /app/config/defaults.hjson
|
|
COPY ui/dist /app/dist
|
|
COPY server/target/debug/lemmy_server /app/lemmy
|
|
|
|
RUN chown lemmy:lemmy /app/ -R
|
|
USER lemmy
|
|
EXPOSE 8536
|
|
WORKDIR /app
|
|
CMD ["/app/lemmy"]
|