Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit c8568b2

Browse files
committed
修复dockerfile
1 parent 468f425 commit c8568b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ RUN npm run build
99

1010
FROM golang:latest
1111
WORKDIR /build
12-
COPY ./backend ./main.go ./go.sum ./go.mod /build/
13-
RUN mkdir -p frontend/dist \
14-
&& go build -ldflags="-w -s" -o Robot_Monitor_Web_linux
15-
COPY --from=build /app/dist/ /build/frontend/dist
12+
COPY ./backend /build/backend/
13+
COPY ./main.go ./go.sum ./go.mod /build/
14+
RUN go build -ldflags="-w -s" -o Robot_Monitor_Web_linux
15+
COPY --from=build /app/dist/ /build/frontend/dist/
1616

1717
CMD ./Robot_Monitor_Web_linux $PORT

0 commit comments

Comments
 (0)