-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.git | ||
.github | ||
.gitignore | ||
.golangci.yml | ||
*testdata* | ||
*_test.go | ||
*.db | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM golang:1.12-alpine AS builder | ||
WORKDIR /src | ||
COPY . . | ||
RUN \ | ||
apk add taglib-dev sqlite build-base git && \ | ||
./_do_build_server && \ | ||
./_do_build_scanner && \ | ||
apk del build-base && \ | ||
mv ./gonic ./gonicscan /bin/ | ||
VOLUME ["/data", "/music"] | ||
EXPOSE 80 | ||
ENV GONIC_LISTEN_ADDR :80 | ||
ENV GONIC_DB_PATH /data/gonic.db | ||
ENV GONIC_MUSIC_PATH /music | ||
CMD ["gonic"] |