Skip to content

Commit

Permalink
add missing admin
Browse files Browse the repository at this point in the history
  • Loading branch information
rboyer committed Sep 11, 2024
1 parent efb7e5e commit 8c08b81
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM alpine:3.13
COPY fileserve /bin/fileserve
VOLUME "/data"
EXPOSE 8080
ENTRYPOINT ["/bin/fileserve"]
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.PHONY: all
all: docker

.PHONY: static
static:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags '-w'

.PHONY: docker
docker: static
docker build --no-cache -t rboyer/fileserve .

0 comments on commit 8c08b81

Please sign in to comment.