Skip to content

Commit

Permalink
feat: 更新golang,适配高版本k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
foliet committed Feb 7, 2025
1 parent 8801e89 commit 579de21
Show file tree
Hide file tree
Showing 23 changed files with 300 additions and 777 deletions.
20 changes: 17 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
FROM alpine:latest
FROM golang:1.23-alpine AS builder

ADD lxcfs-admission-webhook /lxcfs-admission-webhook
ENTRYPOINT ["./lxcfs-admission-webhook"]
LABEL stage=gobuilder

ENV CGO_ENABLED=0

WORKDIR /build
COPY . .
RUN go build

FROM ubuntu:22.04

ENV TZ=Asia/Shanghai

WORKDIR /app

COPY --from=builder /build/lxcfs-admission-webhook /app/lxcfs-admission-webhook
ENTRYPOINT ["./lxcfs-admission-webhook"]
260 changes: 0 additions & 260 deletions Gopkg.lock

This file was deleted.

42 changes: 0 additions & 42 deletions Gopkg.toml

This file was deleted.

Loading

0 comments on commit 579de21

Please sign in to comment.