From 4b90fcf5e163a7d653533726a05341371e1a7bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BA=AE=E4=BA=AE?= Date: Fri, 10 May 2024 11:29:41 +0800 Subject: [PATCH] =?UTF-8?q?build=20=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .woodpecker/.build.yml | 5 ----- Dockerfile | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml index 12b8481..2fd6f8d 100644 --- a/.woodpecker/.build.yml +++ b/.woodpecker/.build.yml @@ -1,9 +1,4 @@ steps: - - name: install - image: golang:1.21.6 - commands: - - go mod tidy - - name: build image: golang:1.21.6 commands: diff --git a/Dockerfile b/Dockerfile index 3b0e662..3b69440 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # 表示依赖 alpine 最新版 -FROM debian:latest -MAINTAINER Wang Chen Chen<932560435@qq.com> +FROM debian:12.5-slim +MAINTAINER Lianglianglee ENV VERSION 1.0 # 在容器根目录 创建一个 apps 目录 @@ -9,7 +9,7 @@ WORKDIR /apps # 挂载容器目录 VOLUME ["/apps/config"] -# 拷贝当前目录下 go_docker_demo1 可以执行文件 +# 拷贝当前目录下可以执行文件,配置文件等 COPY md-view-go /apps/md-view-go COPY static /apps/static COPY templates /apps/templates