This commit is contained in:
2021-11-28 21:30:22 +01:00
commit 6d564ffdcd
6 changed files with 55 additions and 0 deletions

3
.dockerignore Normal file
View File

@@ -0,0 +1,3 @@
*.pyc
.git/
Dockerfile

23
.drone.yml Normal file
View File

@@ -0,0 +1,23 @@
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: docker
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: registry.alxczl.fr/ldap-interface
repository: registry.alxczl.fr
tags: latest
when:
branch:
- master

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*.pyc
venv

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM python:3.9-alpine
COPY requirements.txt /
RUN pip3 install -r /requirements.txt
COPY ./app/ /app
WORKDIR /app
EXPOSE 80/tcp
ENTRYPOINT ["./entrypoint.sh"]

3
app/entrypoint.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env sh
gunicorn app:app --bind "0.0.0.0:80" -w 2

11
requirements.txt Normal file
View File

@@ -0,0 +1,11 @@
click==8.0.3
Flask==2.0.2
gunicorn==20.1.0
importlib-metadata==4.8.2
itsdangerous==2.0.1
Jinja2==3.0.3
MarkupSafe==2.0.1
typing_extensions==4.0.0
Werkzeug==2.0.2
zipp==3.6.0
python-ldap