Skip to content

Commit bd1a20f

Browse files
Modify docker file (#5)
1 parent 23c7584 commit bd1a20f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

docker/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ FROM ubuntu:22.04 as builder
33
RUN apt-get update && apt-get install -y bazel g++ clang
44
WORKDIR /app
55
COPY . .
6+
RUN bazel build //src:mainProg
67

7-
# runtimeFROM ubuntu:22.04
8+
# runtime
9+
FROM ubuntu:22.04
810
WORKDIR /app
9-
COPY --from=builder /app/bazel-bin/src/api /app/api
11+
COPY --from=builder /app/bazel-bin/ /app
12+
RUN bazel run //src:mainProg
1013
EXPOSE 8080
1114
CMD ["./server"]
1215

0 commit comments

Comments
 (0)