mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
✨ docker
This commit is contained in:
parent
3d360346ba
commit
6f77a26e7c
18
Dockerfile.dashboard
Normal file
18
Dockerfile.dashboard
Normal file
@ -0,0 +1,18 @@
|
||||
FROM golang:alpine AS binarybuilder
|
||||
RUN apk --no-cache --no-progress add \
|
||||
gcc \
|
||||
musl-dev
|
||||
WORKDIR /dashboard
|
||||
COPY . .
|
||||
RUN cd cmd/dashboard \
|
||||
&& go build -o app -ldflags="-s -w"
|
||||
FROM alpine:latest
|
||||
RUN apk --no-cache --no-progress add \
|
||||
ca-certificates \
|
||||
tzdata
|
||||
WORKDIR /dashboard
|
||||
COPY --from=binarybuilder /dashboard/cmd/dashboard/app ./app
|
||||
|
||||
VOLUME ["/dashboard/data"]
|
||||
EXPOSE 3000
|
||||
CMD ["/dashboard/app"]
|
Loading…
Reference in New Issue
Block a user