init
This commit is contained in:
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
||||
*.pyc
|
||||
.git/
|
||||
Dockerfile
|
||||
23
.drone.yml
Normal file
23
.drone.yml
Normal 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
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.pyc
|
||||
venv
|
||||
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
3
app/entrypoint.sh
Normal 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
11
requirements.txt
Normal 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
|
||||
Reference in New Issue
Block a user