🐛 resource

This commit is contained in:
naiba 2020-10-29 00:14:31 +08:00
parent 6f77a26e7c
commit 652ecc248b

View File

@ -6,11 +6,13 @@ 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 ./resource ./resource
COPY --from=binarybuilder /dashboard/cmd/dashboard/app ./app
VOLUME ["/dashboard/data"]