File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ project_name: op-acceptor
7
7
8
8
before :
9
9
hooks :
10
- # You may remove this if you don't use go modules.
11
10
- go mod tidy
12
11
13
12
builds :
Original file line number Diff line number Diff line change @@ -11,11 +11,23 @@ RUN just build
11
11
12
12
FROM alpine:3.21
13
13
14
+ # Install Go binary
15
+ # (we copy Go directly from the builder stage for simplicity and consistency)
16
+ COPY --from=builder /usr/local/go /usr/local/go
17
+ ENV PATH="/usr/local/go/bin:${PATH}"
18
+ ENV GOPATH="/go"
19
+ ENV PATH="${GOPATH}/bin:${PATH}"
20
+
14
21
WORKDIR /app
15
22
RUN addgroup -S app && adduser -S app -G app && \
16
23
mkdir -p /devnets && \
17
24
chown -R app:app /devnets
18
25
26
+ # Modify ownership of /go to app user (as we need write permissions)
27
+ RUN mkdir -p /go && \
28
+ mkdir -p /go/pkg /go/bin /go/src && \
29
+ chown -R app:app /go
30
+
19
31
COPY --from=builder /app/bin/op-acceptor /app/
20
32
COPY op-acceptor/example-validators.yaml /app/
21
33
USER app
You can’t perform that action at this time.
0 commit comments