This commit is contained in:
aitzol 2023-04-19 20:13:35 +02:00
parent fe13e89d8a
commit f7a4b6ab72
3 changed files with 6 additions and 1 deletions

View File

@ -2,9 +2,12 @@ FROM python:3-alpine
RUN apk add --no-cache --upgrade bash
RUN mkdir -p /www
RUN chown -R 1000:1000 /www
WORKDIR /www
COPY . .
#COPY --chown=1000:1000 . .
#COPY --chown=daemon:daemon settings.ini.example settings.ini
RUN cp settings.ini.example settings.ini
RUN chmod +x start.sh
RUN set -e; \
@ -17,4 +20,5 @@ RUN set -e; \
apk del .build-deps;
#EXPOSE 9090
USER 1000
ENTRYPOINT ["./start.sh"]

View File

@ -6,6 +6,7 @@ services:
network_mode : host
volumes:
- ./data:/data:rw
- ./session:/session:rw
- ./settings.ini:/www/settings.ini
# - ./certs:/container/service/slapd/assets/certs:rw
# - ./schema:/container/service/slapd/assets/config/bootstrap/schema/custom

View File

@ -2,4 +2,4 @@
if [ ! -f /tmp/foo.txt ]; then
cp settings.ini.example settings.ini
fi
uwsgi --http :9090 --enable-threads --wsgi-file app.py
uwsgi --http :9090 --enable-threads --uid 1000 --wsgi-file app.py