mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-03-12 10:06:49 -04:00
remove outdated Dockerfile
This commit is contained in:
parent
01c8cd757d
commit
d99921f583
31
3rdparty/gcp-guest-agent/Dockerfile
vendored
31
3rdparty/gcp-guest-agent/Dockerfile
vendored
@ -1,31 +0,0 @@
|
||||
FROM ubuntu:22.04@sha256:965fbcae990b0467ed5657caceaec165018ef44a4d2d46c7cdea80a9dff0d1ea as build
|
||||
|
||||
# Install packages
|
||||
RUN apt-get update && apt-get install -y \
|
||||
wget \
|
||||
git
|
||||
|
||||
# Install Go
|
||||
ARG GO_VER=1.19.5
|
||||
RUN wget -q https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz && \
|
||||
tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz && \
|
||||
rm go${GO_VER}.linux-amd64.tar.gz
|
||||
ENV PATH ${PATH}:/usr/local/go/bin
|
||||
|
||||
# Download go dependencies
|
||||
WORKDIR /src/
|
||||
COPY go.mod ./
|
||||
COPY go.sum ./
|
||||
RUN go mod download all
|
||||
|
||||
# Build
|
||||
ARG VERSION=latest
|
||||
COPY . /src
|
||||
WORKDIR /src/google_guest_agent
|
||||
RUN CGO_ENABLED=0 go build -ldflags="-s -w -X main.version=${VERSION}" -mod=readonly
|
||||
WORKDIR /
|
||||
|
||||
FROM scratch as run
|
||||
COPY --from=build /src/google_guest_agent/google_guest_agent /
|
||||
COPY instance_configs.cfg /etc/default/
|
||||
ENTRYPOINT [ "/google_guest_agent" ]
|
Loading…
x
Reference in New Issue
Block a user