init with some kind of working prototype

This commit is contained in:
ducklet 2021-06-15 19:09:21 +02:00
commit b5cb22822e
22 changed files with 1292 additions and 0 deletions

19
Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM docker.io/library/python:3.9-alpine
RUN apk update --no-cache \
&& apk upgrade --no-cache \
&& pip install --no-cache-dir --upgrade pip
RUN addgroup -g 10001 py \
&& adduser -D -u 10000 -G py py
WORKDIR /var/app
COPY requirements.txt ./
RUN pip install --no-cache-dir --upgrade --requirement requirements.txt
USER 10000:10001
ENTRYPOINT ["/var/app/run"]
CMD ["server"]