feat(构建镜像): 添加构建镜像相关文件

This commit is contained in:
xiaoqidun 2020-09-22 15:38:27 +08:00
parent 5f497c91ec
commit d021217ef5
2 changed files with 25 additions and 0 deletions

15
.drone.yml Normal file
View File

@ -0,0 +1,15 @@
kind: pipeline
type: docker
name: default
steps:
- name: docker
pull: if-not-exists
image: plugins/docker
settings:
repo: xiaoqidun/goenv
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: Dockerfile

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
# 基础镜像
FROM golang:buster
# 作者信息
LABEL MAINTAINER="xiaoqidun@gmail.com"
# 安装工具
RUN apt-get update \
&& apt-get install -y \
unzip