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 apk add --no-cache --upgrade bash
RUN mkdir -p /www RUN mkdir -p /www
RUN chown -R 1000:1000 /www
WORKDIR /www WORKDIR /www
COPY . . COPY . .
#COPY --chown=1000:1000 . .
#COPY --chown=daemon:daemon settings.ini.example settings.ini
RUN cp settings.ini.example settings.ini RUN cp settings.ini.example settings.ini
RUN chmod +x start.sh RUN chmod +x start.sh
RUN set -e; \ RUN set -e; \
@ -17,4 +20,5 @@ RUN set -e; \
apk del .build-deps; apk del .build-deps;
#EXPOSE 9090 #EXPOSE 9090
USER 1000
ENTRYPOINT ["./start.sh"] ENTRYPOINT ["./start.sh"]

View File

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

View File

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