bump go version

This commit is contained in:
Ruidy 2024-10-09 20:52:48 +02:00
parent 000835d0d0
commit e08b33f75c
No known key found for this signature in database
GPG key ID: E00F51288CB857CC
3 changed files with 6 additions and 5 deletions

View file

@ -1,4 +1,4 @@
FROM golang:1.19-alpine AS build FROM golang:1.23-alpine AS build
ENV CGO_ENABLED 0 ENV CGO_ENABLED 0
ENV GOOS linux ENV GOOS linux
@ -13,9 +13,7 @@ RUN go mod download
COPY . ./ COPY . ./
RUN go build -ldflags="-s -w" -o ./out/dist . RUN go build -ldflags="-s -w" -o ./out/dist .
FROM alpine:latest FROM scratch
RUN apk -U upgrade --no-cache
COPY --from=build /app/out/dist . COPY --from=build /app/out/dist .

View file

@ -8,4 +8,7 @@ COPY yarn.lock .
RUN yarn install RUN yarn install
COPY . . COPY . .
EXPOSE 80
CMD node index.js CMD node index.js

View file

@ -10,7 +10,7 @@ RUN apk -U upgrade --no-cache && \
RUN cargo build --release RUN cargo build --release
FROM alpine FROM alpine:latest
RUN apk -U upgrade --no-cache RUN apk -U upgrade --no-cache