提交 1928ce96 编写于 作者: 6 635677437d755007c09848d3

use tiny image

上级 722379aa
...@@ -3,7 +3,12 @@ if [ ! -f /usr/bin/pip3.8 ]; then ...@@ -3,7 +3,12 @@ if [ ! -f /usr/bin/pip3.8 ]; then
fi fi
if [ ! -f /usr/bin/docker ]; then if [ ! -f /usr/bin/docker ]; then
curl -fsSL https://get.docker.com | sh --mirror Aliyun curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://o4omo0yw.mirror.aliyuncs.com"]
}
EOF
service docker start service docker start
fi fi
......
FROM golang:latest FROM golang:1.18-alpine
RUN useradd -s /bin/bash -m -l user \ No newline at end of file
USER user
WORKDIR /home/user
\ No newline at end of file
FROM python:latest FROM python:3.7-alpine
RUN useradd -s /bin/bash -m -l user \ No newline at end of file
USER user
WORKDIR /home/user
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册