build: update dockerfile
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Build stage
|
# Build stage
|
||||||
FROM golang:1.20-alpine AS builder
|
FROM crpi-8s2ierii2xan4klg-vpc.cn-beijing.personal.cr.aliyuncs.com/texpixel/golang:1.20-alpine AS builder
|
||||||
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@@ -16,7 +16,7 @@ RUN go mod download && \
|
|||||||
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o doc_ai ./main.go
|
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o doc_ai ./main.go
|
||||||
|
|
||||||
# Runtime stage
|
# Runtime stage
|
||||||
FROM alpine:latest
|
FROM crpi-8s2ierii2xan4klg-vpc.cn-beijing.personal.cr.aliyuncs.com/texpixel/alpine:latest
|
||||||
|
|
||||||
# Set timezone
|
# Set timezone
|
||||||
RUN apk add --no-cache tzdata && \
|
RUN apk add --no-cache tzdata && \
|
||||||
|
|||||||
Reference in New Issue
Block a user