From 29bdf5dce300a3b3df52f38262397714b6247ae9 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Thu, 19 Jan 2023 19:43:23 +0800 Subject: [PATCH] update --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c5905d1..3ff4092 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # 多重构建,减少镜像大小 # 构建:使用golang:1.15版本 -FROM golang:1.15 as build +FROM registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/golang:1.18.4 as build # 容器环境变量添加,会覆盖默认的变量值 ENV GO111MODULE=on @@ -16,7 +16,7 @@ ADD . . RUN GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -tags netgo -ldflags="-s -w" -installsuffix cgo -o zyos main.go FROM ubuntu:xenial as prod -LABEL maintainer="wuhanqin" +LABEL maintainer="dengbiao" ENV TZ="Asia/Shanghai" COPY static/html static/html