File tree 2 files changed +19
-11
lines changed
2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 1
- # Other
2
- Assignment.md
3
- README.md
1
+ # Git & GitHub
2
+ .git
4
3
.gitignore
4
+ .github
5
5
6
6
# Genereated protobuf files
7
- pb
7
+ proto / * .pb.go
8
8
9
9
# Docker
10
10
.dockerignore
11
11
Dockerfile
12
- docker-compose.yml
12
+ docker-compose.yml
13
+
14
+ # Other
15
+ Assignment.md
16
+ README.md
17
+ REPORT.md
18
+ Lamport.png
19
+ LICENSE
20
+ example.log
Original file line number Diff line number Diff line change @@ -16,17 +16,17 @@ RUN apk update && apk upgrade --no-cache && \
16
16
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest && \
17
17
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
18
18
19
- ADD Makefile ./
20
- ADD proto ./proto
19
+ COPY proto proto
21
20
22
- RUN make proto
21
+ RUN --mount=type=bind,source=Makefile,target=Makefile \
22
+ make proto
23
23
24
24
25
- FROM chef AS builder
25
+ FROM chef AS grpc- builder
26
26
27
27
WORKDIR /build
28
28
29
- COPY --from=proto-builder /build/proto ./
29
+ COPY --from=proto-builder /build/proto proto
30
30
31
31
ADD . .
32
32
@@ -37,7 +37,7 @@ FROM alpine:3.20 AS runner
37
37
38
38
WORKDIR /var/app
39
39
40
- COPY --from=builder /build/bin/grpc .
40
+ COPY --from=grpc- builder /build/bin/grpc .
41
41
42
42
RUN addgroup -S app && \
43
43
adduser -S chitty -G app && \
You can’t perform that action at this time.
0 commit comments