mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 22:31:20 +00:00
17 lines
437 B
Text
17 lines
437 B
Text
|
FROM ekidd/rust-musl-builder:1.38.0-openssl11
|
||
|
|
||
|
# Copy resources
|
||
|
COPY server/config/defaults.hjson /app/config/defaults.hjson
|
||
|
COPY server/target/debug/lemmy_server /app/lemmy
|
||
|
COPY ui/dist /app/dist
|
||
|
|
||
|
USER root
|
||
|
RUN mkdir /app/dist/documentation/
|
||
|
RUN addgroup --gid 1001 lemmy
|
||
|
RUN adduser --disabled-password --shell /bin/sh -u 1001 --ingroup lemmy lemmy
|
||
|
RUN chown lemmy:lemmy /app/ -R
|
||
|
USER lemmy
|
||
|
EXPOSE 8536
|
||
|
WORKDIR /app
|
||
|
CMD ["/app/lemmy"]
|