Files
kustomize/hack/krmFunctionBenchmark/label_namespace/execfn/Dockerfile
natasha41575 a2ceaff053 small fixes
2023-09-08 11:38:23 -05:00

20 lines
504 B
Docker

# Copyright 2022 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
FROM alpine:latest
ENV BUILD_HOME=/usr/local/build
RUN apk update && apk add --no-cache git nodejs npm
COPY ["./package.json", "./package-lock.json", "./"]
RUN npm install -g
RUN mkdir -p $BUILD_HOME
WORKDIR $BUILD_HOME
RUN git clone https://github.com/GoogleContainerTools/kpt-functions-sdk.git .
RUN git checkout tags/release-kpt-functions-v0.14.2
WORKDIR $BUILD_HOME/ts/hello-world/
RUN npm install
RUN npm run build