mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 20:58:14 -05:00
🐛 resource
This commit is contained in:
parent
6f77a26e7c
commit
652ecc248b
@ -6,11 +6,13 @@ WORKDIR /dashboard
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN cd cmd/dashboard \
|
RUN cd cmd/dashboard \
|
||||||
&& go build -o app -ldflags="-s -w"
|
&& go build -o app -ldflags="-s -w"
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk --no-cache --no-progress add \
|
RUN apk --no-cache --no-progress add \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
tzdata
|
tzdata
|
||||||
WORKDIR /dashboard
|
WORKDIR /dashboard
|
||||||
|
COPY ./resource ./resource
|
||||||
COPY --from=binarybuilder /dashboard/cmd/dashboard/app ./app
|
COPY --from=binarybuilder /dashboard/cmd/dashboard/app ./app
|
||||||
|
|
||||||
VOLUME ["/dashboard/data"]
|
VOLUME ["/dashboard/data"]
|
||||||
|
Loading…
Reference in New Issue
Block a user