1 Star 0 Fork 4

shankailun09/tone-storage

forked from anolis/tone-storage 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 753 Bytes
一键复制 编辑 原始数据 按行查看 历史
付勇 提交于 2022-12-06 13:46 . feat: dockerfile 中更换 apk add 源
FROM alpine:3.6
# Install packages
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk add --no-cache nginx supervisor openssh-server openssh-sftp-server
# NGINX
RUN mkdir -p /run/nginx/ && \
ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log
ADD files/nginx.conf /etc/nginx/conf.d/default.conf
# SSH/SFTP
ADD files/sshd_config /etc/ssh/
ADD files/index.html /data/index.html
# Supervisord
ADD files/supervisord.ini /etc/supervisor.d/
ADD files/docker_kill.py files/entrypoint.sh /
# Configuration for Container
VOLUME /data /etc/ssh/keys/
EXPOSE 22 80
# Creates users, checks permissions, generates host-keys and launches supervisord
CMD ["/entrypoint.sh"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shankailun09/tone-storage.git
git@gitee.com:shankailun09/tone-storage.git
shankailun09
tone-storage
tone-storage
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385