1. node:18-alpine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# alpine 系统 

# 安装 git
apk update
apk add git
git --version

# 安装 nano
apk update
apk add nano
nano --version

# 安装 curl
apk update
apk add curl

# 安装 bash
apk update
apk add bash

# 安装 openssh
apk update
apk add openssh

alpine 系统设置上海时间

1
2
3
4
5
RUN apk --update add tzdata && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
apk del tzdata && \
rm -rf /var/cache/apk/*
1
2
3
4
5
6
7
FROM xxx

RUN apk --update add tzdata && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
apk del tzdata && \
rm -rf /var/cache/apk/*
1
docker build -f DockerFile -t xxx .

设置容器时间

1
2
3
volumes:
- '/etc/localtime:/etc/localtime:ro'
- '/etc/timezone:/etc/timezone:ro'

Docker 镜像 描述
node:18-alpine

自定义镜像

Docker 镜像 描述
rahn2029/hexo:1.0 hexo 初始化 博客
rahn2029/hexo-butterfly:1.0 中文版 hexo-butterfly 主题初始化
rahn2029/hexo-butterfly:2.0 个性化 hexo-butterfly 主题
rahn2029/hnet-web:1.0 hnet-web 官方初始化 网页代理
rahn2029/hnet-web:2.0 hnet-web 个人修改版 网页代理
rahn2029/frps snowdreamtech/frps 内网穿透服务端
rahn2029/frpc snowdreamtech/frpc 内网穿透客户端
rahn2029/minimalist-web-notepad 极简主义网络记事本
rahn2029/homepage 修改 ghcr.io/benphelps/homepage 的主页导航
rahn2029/tachidesk ghcr.io/suwayomi/tachidesk 漫画阅读器
rahn2029/vaultwarden vaultwarden/server:latest 密码库管理
rahn2029/jellyfin 修改 nyanmisaka/jellyfin 添加一个 animation 文件夹
rahn2029/searxng searxng/searxng 开源聚合搜索引擎
redis:alpine redis:alpine 开源聚合搜索引擎
rahn2029/npm jc21/nginx-proxy-manager 网站代理
rahn2029/invidious quay.io/invidious/invidious:latest Invidious
rahn2029/postgres:14 docker.io/library/postgres:14 Invidious
rahn2029/weserv ghcr.io/weserv/images:5.x 图片代理
rahn2029/rustdesk rustdesk/rustdesk-server 远程连接
rahn2029/portainer-ce 6053537/portainer-ce docker 可视化面板
rahn2029/sshwifty niruix/sshwifty