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