15 lines
403 B
Docker
15 lines
403 B
Docker
# 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"]
|