auto build.

This commit is contained in:
luming 2021-10-19 20:15:03 +08:00
parent 93f48def4d
commit 5aceccb6e2
2 changed files with 24 additions and 1 deletions

View File

@ -25,4 +25,18 @@ steps:
- sha256
when:
event:
- tag
- tag
- name: publish_docker
image: plugins/docker:latest
pull: if-not-exists
settings:
username:
from_secret: hub_username
password:
from_secret: hub_password
repo: rainerosion/ssh-manager
tags: latest
build_args:
- ssh_manage=./ssh_manage
dockerfile: drone/Dockerfile

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM alpine:latest
ARG ssh_manage
ENV TIME_ZONE=Asia/Shanghai
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && apk update && apk add tzdata \
&& ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime && echo $TIME_ZONE > /etc/timezone
WORKDIR /root
ADD ${ssh_manage} /root/
EXPOSE 8082
CMD [ "/root/ssh_manage" ]