mirror of https://github.com/statping/statping
dockerfile update
parent
1fabda1c26
commit
140495d916
|
@ -37,7 +37,7 @@ RUN go get github.com/stretchr/testify/assert && \
|
|||
go get github.com/crazy-max/xgo
|
||||
COPY . .
|
||||
COPY --from=frontend /statping/dist/ ./source/dist/
|
||||
RUN make clean frontend-copy generate embed
|
||||
RUN make clean generate embed
|
||||
RUN go build -a -ldflags "-s -w -extldflags -static -X main.VERSION=${VERSION} -X main.COMMIT=${COMMIT}" -o statping --tags "netgo linux" ./cmd
|
||||
RUN chmod a+x statping && mv statping /go/bin/statping
|
||||
# /go/bin/statping - statping binary
|
||||
|
|
5
Makefile
5
Makefile
|
@ -68,7 +68,7 @@ cypress: clean
|
|||
|
||||
test-api:
|
||||
DB_CONN=sqlite DB_HOST=localhost DB_DATABASE=sqlite DB_PASS=none DB_USER=none statping &
|
||||
sleep 5000 && newman run source/tmpl/postman.json -e dev/postman_environment.json --delay-request 500
|
||||
sleep 5000 && newman run dev/postman.json -e dev/postman_environment.json --delay-request 500
|
||||
|
||||
test-deps:
|
||||
go get golang.org/x/tools/cmd/cover
|
||||
|
@ -151,9 +151,6 @@ frontend-build:
|
|||
@cp -r frontend/public/favicon source/dist/
|
||||
@echo "Frontend build complete at ./source/dist"
|
||||
|
||||
frontend-copy:
|
||||
cp -r source/tmpl/*.* source/dist/
|
||||
|
||||
yarn:
|
||||
rm -rf source/dist && rm -rf frontend/dist
|
||||
cd frontend && yarn
|
||||
|
|
Loading…
Reference in New Issue