You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
469 B
15 lines
469 B
FROM golang:alpine
|
|
|
|
RUN set -ex \
|
|
&& apk add --no-cache --virtual .build-deps git \
|
|
&& go get github.com/andreimarcu/linx-server \
|
|
&& apk del .build-deps
|
|
|
|
RUN mkdir -p /data/files && mkdir -p /data/meta && chown -R 65534:65534 /data
|
|
|
|
VOLUME ["/data/files", "/data/meta"]
|
|
|
|
EXPOSE 8080
|
|
USER nobody
|
|
ENTRYPOINT ["/go/bin/linx-server", "-bind=0.0.0.0:8080", "-filespath=/data/files/", "-metapath=/data/meta/"]
|
|
CMD ["-sitename=linx", "-allowhotlink"]
|