Initial demo service for AISP Gitea CI
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
# The AISP build gateway only allows base images from approved mirrors, written with the
|
||||
# full host (docker.io/..., harbor.vts-ai.space/...).
|
||||
FROM docker.io/library/python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
COPY app.py .
|
||||
|
||||
# AISP enforces PodSecurity "restricted": run as a non-root UID on a port above 1024.
|
||||
USER 10001
|
||||
ENV PORT=8080 \
|
||||
APP_MESSAGE="Hello from AISP"
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["python", "-u", "app.py"]
|
||||
Reference in New Issue
Block a user