Compare commits

..

No commits in common. "9155206b5c7dd5d0735dc994d915d3ee961a9260" and "79932227151570fcc21c55aaf3f1364dd2d8ed1d" have entirely different histories.

5 changed files with 1 additions and 46 deletions

View file

@ -1,11 +0,0 @@
FROM python:3.11-slim
WORKDIR /paste
COPY requirements.txt requirements.txt
COPY paste ${WORKDIR}
RUN apt update && apt install -y wget && apt -y clean
RUN pip install -r requirements.txt
EXPOSE 5000
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]

View file

@ -1,13 +0,0 @@
services:
paste:
build: .
ports:
- "5000:5000"
environment:
PASTE_REDIS_HOST: "redis"
healthcheck:
test: [ 'CMD', 'wget', '-q', '--spider', 'http://localhost/health']
redis:
image: "redis:7.0"
healthcheck:
test: [ 'CMD', 'redis-cli', 'ping' ]

View file

@ -1,13 +0,0 @@
services:
paste:
build: git.gnous.eu/gnouseu/paste
ports:
- "5000:5000"
environment:
PASTE_REDIS_HOST: "redis"
healthcheck:
test: [ 'CMD', 'wget', '-q', '--spider', 'http://localhost/health']
redis:
image: "redis:7.0"
healthcheck:
test: [ 'CMD', 'redis-cli', 'ping' ]

View file

@ -87,12 +87,3 @@ def get_content(path: str) -> str:
return render_template("content.html.j2")
return abort(404)
@home.route("/check")
def health_check() -> str:
"""
For verify if the app run.
:return: "ok".
"""
return "ok"

View file

@ -59,6 +59,7 @@ exclude = [
"instances",
"schema.sql"
]
format = "grouped"
[tool.isort]
profile = "black"