add travis
This commit is contained in:
1 parent
a2e293292e
commit
703318c214
11 files changed
+110
-38
No files matched your search
@@ -0,0 +1,13 @@
|
||||
FROM golang:alpine
|
||||
|
||||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
||||
sed -i -e "s/v[0-9]\.[0-9]/edge/g" /etc/apk/repositories && \
|
||||
apk --no-cache -U upgrade && apk --no-cache add ca-certificates yarn git curl dos2unix && \
|
||||
go get github.com/GeertJohan/go.rice/rice && \
|
||||
curl -fsSL -o /usr/local/bin/dep $( \
|
||||
curl -s https://api.github.com/repos/golang/dep/releases/latest \
|
||||
| grep "browser_download_url.*linux-amd64\"" \
|
||||
| cut -d : -f 2,3 \
|
||||
| tr -d \" \
|
||||
) && \
|
||||
chmod +x /usr/local/bin/dep
|
||||
@@ -0,0 +1,12 @@
|
||||
FROM scratch
|
||||
|
||||
COPY --from=filebrowser/dev /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
VOLUME /tmp
|
||||
VOLUME /srv
|
||||
EXPOSE 80
|
||||
|
||||
COPY filebrowser /filebrowser
|
||||
COPY Docker.json /config.json
|
||||
|
||||
ENTRYPOINT ["/filebrowser", "--config", "/config.json"]
|
||||
Reference in new issue
Block a user