Add Dockerfile
This will build the binary directly in the image without a need to have Go installed locally.
This commit is contained in:
parent
4ef3f33821
commit
2e5521ce7d
|
@ -0,0 +1,13 @@
|
||||||
|
FROM golang:alpine
|
||||||
|
|
||||||
|
RUN set -ex \
|
||||||
|
&& apk add --no-cache --virtual .build-deps git mercurial \
|
||||||
|
&& go get github.com/andreimarcu/linx-server \
|
||||||
|
&& apk del .build-deps
|
||||||
|
|
||||||
|
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"]
|
Loading…
Reference in New Issue