From e08b33f75ce23de5ec35f818e4252e22894ed603 Mon Sep 17 00:00:00 2001 From: Ruidy Date: Wed, 9 Oct 2024 20:52:48 +0200 Subject: [PATCH] bump go version --- go/Dockerfile | 6 ++---- node/Dockerfile | 3 +++ rust/Dockerfile | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/go/Dockerfile b/go/Dockerfile index 9d62966..497ff35 100644 --- a/go/Dockerfile +++ b/go/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19-alpine AS build +FROM golang:1.23-alpine AS build ENV CGO_ENABLED 0 ENV GOOS linux @@ -13,9 +13,7 @@ RUN go mod download COPY . ./ RUN go build -ldflags="-s -w" -o ./out/dist . -FROM alpine:latest - -RUN apk -U upgrade --no-cache +FROM scratch COPY --from=build /app/out/dist . diff --git a/node/Dockerfile b/node/Dockerfile index 0ff3721..6c70ca1 100644 --- a/node/Dockerfile +++ b/node/Dockerfile @@ -8,4 +8,7 @@ COPY yarn.lock . RUN yarn install COPY . . + +EXPOSE 80 + CMD node index.js diff --git a/rust/Dockerfile b/rust/Dockerfile index 484acfe..7da448f 100644 --- a/rust/Dockerfile +++ b/rust/Dockerfile @@ -10,7 +10,7 @@ RUN apk -U upgrade --no-cache && \ RUN cargo build --release -FROM alpine +FROM alpine:latest RUN apk -U upgrade --no-cache