first commit

This commit is contained in:
Jay 2020-07-03 14:48:56 +08:00
commit 3ed60d7260
2 changed files with 23 additions and 0 deletions

20
.drone.yml Normal file
View File

@ -0,0 +1,20 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build docker image
image: plugins/docker
settings:
purge: true
autotag: true
repo: docker.mtfos.xyz/nginx
registry: docker.mtfos.xyz
tags:
- latest
- "${DRONE_COMMIT}"
when:
ref:
- refs/heads/master
- refs/tags/**

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM nginx:alpine
WORKDIR /var/www
RUN apk add --no-cache shadow && usermod -u 1000 nginx && groupmod -g 1000 nginx