Fix Dockerfile and Makefile
This commit is contained in:
@@ -36,9 +36,7 @@ COPY ./internal/auth/*.go ./internal/auth/
|
||||
COPY ./internal/session/*.go ./internal/session/
|
||||
COPY ./internal/passwords/*.go ./internal/passwords/
|
||||
COPY ./internal/webmention/*.go ./internal/webmention/
|
||||
COPY ./types/*.go ./types/
|
||||
COPY ./types/retwt/*.go ./types/retwt/
|
||||
COPY ./cmd/twtd/*.go ./cmd/twtd/
|
||||
COPY ./cmd/spyda/*.go ./cmd/spyda/
|
||||
|
||||
# Version/Commit (there there is no .git in Docker build context)
|
||||
# NOTE: This is fairly low down in the Dockerfile instructions so
|
||||
@@ -62,7 +60,7 @@ VOLUME /data
|
||||
# force cgo resolver
|
||||
ENV GODEBUG=netdns=cgo
|
||||
|
||||
COPY --from=build /src/twtd /twtd
|
||||
COPY --from=build /src/spyda /spyda
|
||||
|
||||
ENTRYPOINT ["/twtd"]
|
||||
ENTRYPOINT ["/spyda"]
|
||||
CMD [""]
|
||||
|
||||
17
Makefile
17
Makefile
@@ -12,24 +12,16 @@ deps:
|
||||
|
||||
dev : DEBUG=1
|
||||
dev : build
|
||||
@./twt -v
|
||||
@./twtd -D -O -R
|
||||
|
||||
cli:
|
||||
@go build -tags "netgo static_build" -installsuffix netgo \
|
||||
-ldflags "-w \
|
||||
-X $(shell go list).Version=$(VERSION) \
|
||||
-X $(shell go list).Commit=$(COMMIT)" \
|
||||
./cmd/twt/...
|
||||
@./spyda -D
|
||||
|
||||
server: generate
|
||||
@go build -tags "netgo static_build" -installsuffix netgo \
|
||||
-ldflags "-w \
|
||||
-X $(shell go list).Version=$(VERSION) \
|
||||
-X $(shell go list).Commit=$(COMMIT)" \
|
||||
./cmd/twtd/...
|
||||
./cmd/spyda/...
|
||||
|
||||
build: cli server
|
||||
build: server
|
||||
|
||||
generate:
|
||||
@if [ x"$(DEBUG)" = x"1" ]; then \
|
||||
@@ -43,8 +35,7 @@ generate:
|
||||
fi
|
||||
|
||||
install: build
|
||||
@go install ./cmd/twt/...
|
||||
@go install ./cmd/twtd/...
|
||||
@go install ./cmd/spyda/...
|
||||
|
||||
ifeq ($(PUBLISH), 1)
|
||||
image:
|
||||
|
||||
348
internal/rice-box.go
Normal file
348
internal/rice-box.go
Normal file
File diff suppressed because one or more lines are too long
2
internal/static/css/spyda.min.css
vendored
Normal file
2
internal/static/css/spyda.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
internal/static/js/spyda.min.js
vendored
Normal file
1
internal/static/js/spyda.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user