修改Dockerfile的格式,简化代码
This commit is contained in:
parent
faa346ebed
commit
ca3b1f5bfc
18
Dockerfile
18
Dockerfile
@ -1,18 +1,18 @@
|
||||
FROM code.h2ostudio.cn/titor/debian:armv7 AS builder
|
||||
|
||||
LABEL Author="Titor-Z"
|
||||
LABEL maintainer="titor@h2ostudio.cn"
|
||||
LABEL org.opencontainers.image.created="Thu 17 Oct 2024 05:35:07 PM UTC"
|
||||
LABEL ORG.opencontainers.image.licenses="MIT"
|
||||
LABEL org.opencontainers.image.title="Gitea·Armbian"
|
||||
LABEL org.opencontainers.image.description ="The Gitea Application on Armbian, Device is Armv7l"
|
||||
LABEL org.opencontainers.image.created="value"
|
||||
LABEL Author="titor.Z" maintainer="titor@h2ostudio.cn" org.opencontainers.image.created="Thu 17 Oct 2024 05:35:07 PM UTC" org.opencontainers.image.licenses="MIT" org.opencontainers.image.title="GiteArmBian" org.opencontainers.image.description="专为运行armbian armv7l架构的onecloud开发的Gitea docker镜像"
|
||||
|
||||
ENV GITEA_WORK_DIR=/var/lib/gitea
|
||||
|
||||
WORKDIR /
|
||||
|
||||
# 替换为腾讯源
|
||||
COPY debian.sources /etc/apt/sources.list.d
|
||||
# 复制Gitea源码
|
||||
COPY gitea-1.22.3-linux-arm-6 /usr/local/bin/gitea
|
||||
# 复制 gitea service 系统服务
|
||||
COPY gitea.services.sh /etc/init.d/gitea
|
||||
|
||||
#### 更新包列表并安装必要的依赖
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
@ -23,10 +23,6 @@ RUN apt-get update && apt-get install -y \
|
||||
# golang \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
#### 复制二进制文件到系统
|
||||
COPY gitea-1.22.3-linux-arm-6 /usr/local/bin/gitea
|
||||
COPY gitea.services.sh /etc/init.d/gitea
|
||||
|
||||
WORKDIR /root/
|
||||
#### 执行初始化操作
|
||||
###### 1. 创建git用户
|
||||
|
Loading…
Reference in New Issue
Block a user