dockerizazioa

This commit is contained in:
2023-12-15 13:11:40 +01:00
parent 253c5c2491
commit 645edec125
4 changed files with 20 additions and 7 deletions
+8 -1
View File
@@ -1,5 +1,8 @@
FROM python:3-alpine
ARG USER_
ARG UID_
ENV USER_=admin
ENV UID_=1000
RUN apk add --no-cache --upgrade bash
@@ -16,4 +19,8 @@ RUN set -e; \
pip install -r requirements.txt; \
apk del .build-deps;
ENTRYPOINT ["./start.sh"]
#RUN adduser -S -D $USER -u $UID_
#USER $USER
ENTRYPOINT ["./start.sh", "$UID_"]
#CMD ["$UID_"]