feat: docker image
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-03-03 22:34:14 +03:00
parent 81b1373f17
commit fd8404fb5f
3 changed files with 36 additions and 0 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
*
!/wait-for-it.sh

23
.drone.yml Normal file
View File

@ -0,0 +1,23 @@
---
kind: pipeline
type: docker
name: default
trigger:
event:
- push
steps:
- name: docker
image: plugins/docker
settings:
username:
from_secret: REGISTRY_USERNAME
password:
from_secret: REGISTRY_PASSWORD
repo: grachevko/wait-for-it
tags: latest
when:
branch:
- master
- rc

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM alpine:3.17.2
RUN --mount=type=cache,target=/var/cache/apk \
set -e \
&& apk add --update-cache \
bash
COPY wait-for-it.sh /bin/
ENTRYPOINT ["/bin/wait-for-it.sh"]