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