File: Dockerfile

package info (click to toggle)
golang-github-rootless-containers-bypass4netns 0.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 596 kB
  • sloc: sh: 1,936; python: 542; makefile: 33
file content (14 lines) | stat: -rw-r--r-- 418 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM golang:1.22.0 as bench-builder

RUN mkdir /etcd
RUN curl -fsSL https://github.com/etcd-io/etcd/archive/refs/tags/v3.5.10.tar.gz | tar -xz --no-same-owner --no-same-permissions --strip-components 1 -C /etcd
RUN ls -l /etcd

# static link
RUN cd /etcd/tools/benchmark && CGO_ENABLED=0 go build -o /bench main.go

FROM ubuntu:22.04

COPY --from=bench-builder /bench /bench

CMD ["/bin/bash", "-c", "sleep infinity"]