mirror of
https://github.com/rjNemo/docker_examples
synced 2026-06-06 02:26:45 +00:00
bump go version
This commit is contained in:
parent
000835d0d0
commit
e08b33f75c
3 changed files with 6 additions and 5 deletions
|
|
@ -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 .
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue