mirror of
https://gitea.com/gitea/tea
synced 2024-11-22 16:02:01 +01:00
pie doesn't mesh with scratch image
This commit is contained in:
parent
32b9f5e836
commit
2a666c84cb
@ -1,10 +1,10 @@
|
|||||||
FROM cgr.dev/chainguard/go:latest AS buildenv
|
FROM cgr.dev/chainguard/go:latest AS build
|
||||||
COPY . /build/
|
COPY . /build/
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
RUN make clean build STATIC=true
|
RUN make build
|
||||||
|
|
||||||
FROM cgr.dev/chainguard/static:latest
|
FROM cgr.dev/chainguard/static:latest
|
||||||
COPY --from=buildenv /build/tea /tea
|
COPY --from=build /build/tea /tea
|
||||||
VOLUME [ "/app" ]
|
VOLUME [ "/app" ]
|
||||||
ENV HOME="/app"
|
ENV HOME="/app"
|
||||||
ENTRYPOINT ["/tea"]
|
ENTRYPOINT ["/tea"]
|
||||||
|
3
Makefile
3
Makefile
@ -37,9 +37,6 @@ ifeq ($(OS), Windows_NT)
|
|||||||
else
|
else
|
||||||
EXECUTABLE := tea
|
EXECUTABLE := tea
|
||||||
VET_TOOL := gitea-vet
|
VET_TOOL := gitea-vet
|
||||||
ifneq ($(shell uname -s), OpenBSD)
|
|
||||||
override BUILDMODE := -buildmode=pie
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
Loading…
Reference in New Issue
Block a user