2016-09-16 07:26:35 +02:00
|
|
|
FROM golang:alpine
|
|
|
|
|
|
|
|
RUN set -ex \
|
2017-05-02 06:49:27 +02:00
|
|
|
&& apk add --no-cache --virtual .build-deps git \
|
2016-09-16 07:26:35 +02:00
|
|
|
&& go get github.com/andreimarcu/linx-server \
|
|
|
|
&& apk del .build-deps
|
|
|
|
|
2018-04-21 18:01:25 +02:00
|
|
|
RUN mkdir -p /data/files && mkdir -p /data/meta && chown -R 65534:65534 /data
|
|
|
|
|
2016-09-16 07:26:35 +02:00
|
|
|
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"]
|