fix docker static
This commit is contained in:
parent
0bdaa141bd
commit
f2921c91a1
@ -15,6 +15,7 @@ ADD go.sum .
|
|||||||
RUN go mod download
|
RUN go mod download
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY app/main/api/etc /app/etc
|
COPY app/main/api/etc /app/etc
|
||||||
|
COPY app/main/api/static /app/static
|
||||||
RUN go build -ldflags="-s -w" -o /app/main app/main/api/main.go
|
RUN go build -ldflags="-s -w" -o /app/main app/main/api/main.go
|
||||||
|
|
||||||
|
|
||||||
@ -27,5 +28,5 @@ ENV TZ Asia/Shanghai
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /app/main /app/main
|
COPY --from=builder /app/main /app/main
|
||||||
COPY --from=builder /app/etc /app/etc
|
COPY --from=builder /app/etc /app/etc
|
||||||
|
COPY --from=builder /app/static /app/static
|
||||||
CMD ["./main", "-f", "etc/main.yaml"]
|
CMD ["./main", "-f", "etc/main.yaml"]
|
||||||
|
Loading…
Reference in New Issue
Block a user