fix failed tests for fn framework generator

This commit is contained in:
koba1t
2023-09-21 07:15:10 +09:00
parent 67a0b43c81
commit 7af4e772bd
10 changed files with 261 additions and 30 deletions

View File

@@ -0,0 +1,18 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
FROM golang:1.20-bullseye
ENV CGO_ENABLED=0
WORKDIR /go/src/
# download modules
# COPY go.mod go.mod
# COPY go.sum go.sum
# RUN go mod download
COPY . .
RUN go build -v -o /usr/local/bin/function ./cmd/config/internal/commands/e2e/e2econtainersimplegenerator
FROM alpine:latest
COPY --from=0 /usr/local/bin/function /usr/local/bin/function
CMD ["function"]