File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
plugincontainer/examples/container Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright (c) HashiCorp, Inc.
2
2
# SPDX-License-Identifier: MPL-2.0
3
3
4
- FROM gcr.io/distroless/static-debian12 as root
4
+ FROM gcr.io/distroless/static-debian12 AS root
5
5
6
6
COPY go-plugin-counter /bin/go-plugin-counter
7
7
8
8
ENTRYPOINT [ "/bin/go-plugin-counter" ]
9
9
10
- FROM docker.mirror.hashicorp.services/ubuntu as nonroot
10
+ FROM docker.mirror.hashicorp.services/ubuntu:24.04 AS nonroot
11
11
12
12
COPY go-plugin-counter /bin/go-plugin-counter
13
13
14
- RUN apt-get update && apt-get install -y libcap2-bin acl && \
14
+ RUN apt-get update && apt-get install -y libcap2-bin acl adduser && \
15
15
addgroup --system nonroot && \
16
16
adduser --system --ingroup nonroot nonroot && \
17
17
chown -R nonroot:nonroot /bin/go-plugin-counter && \
@@ -22,9 +22,9 @@ USER nonroot
22
22
23
23
ENTRYPOINT [ "/bin/go-plugin-counter" ]
24
24
25
- FROM nonroot as nonroot-mlock
25
+ FROM nonroot AS nonroot-mlock
26
26
27
27
ENTRYPOINT [ "/bin/go-plugin-counter-mlock" ]
28
28
29
29
# Set root as the default image.
30
- FROM root
30
+ FROM root
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ To run the example:
11
11
12
12
``` sh
13
13
# Build the plugin container image
14
- $ go build -o go-plugin-counter ./plugin-counter && docker build -t go- plugin-counter .
14
+ $ go build -o go-plugin-counter ./plugin-counter && docker build -t plugin-counter .
15
15
16
16
# Read and write
17
17
$ go run main.go increment hello 1
You can’t perform that action at this time.
0 commit comments