From cdbe3f1ef9b95dc90e2d447fb1bc3861807208c0 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 16 Aug 2022 14:28:47 +1000 Subject: [PATCH] Update dockerfile to fedora 35 --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4450900..bfeceb9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,12 @@ -FROM golang:1.16-alpine AS build +FROM registry.fedoraproject.org/fedora:35 AS builder +RUN yum install -y golang-bin WORKDIR /go/src/project/ COPY . /go/src/project/ RUN go build -o /bin/deplist ./cmd/deplist/ -FROM registry.fedoraproject.org/fedora:34 +FROM registry.fedoraproject.org/fedora:35 RUN dnf install -y \ - golang-bin-1.16 \ + golang-bin \ yarnpkg \ maven \ rubygem-bundler \ @@ -14,5 +15,5 @@ RUN dnf install -y \ gcc-c++ \ npm \ && dnf clean all -COPY --from=build /bin/deplist / +COPY --from=builder /bin/deplist / ENTRYPOINT ["/deplist"]