ldap-python-webui/Dockerfile

25 lines
493 B
Docker
Raw Normal View History

2023-04-17 05:26:22 +02:00
FROM python:3-alpine
2023-04-18 05:17:08 +02:00
2023-04-17 05:26:22 +02:00
RUN apk add --no-cache --upgrade bash
RUN mkdir -p /www
2023-04-19 20:13:35 +02:00
RUN chown -R 1000:1000 /www
2023-04-17 05:26:22 +02:00
WORKDIR /www
COPY . .
2023-04-19 20:13:35 +02:00
#COPY --chown=1000:1000 . .
#COPY --chown=daemon:daemon settings.ini.example settings.ini
2023-04-19 12:54:05 +02:00
RUN cp settings.ini.example settings.ini
2023-04-17 05:26:22 +02:00
RUN chmod +x start.sh
RUN set -e; \
apk add --no-cache --virtual .build-deps \
gcc \
libc-dev \
linux-headers \
; \
pip install -r requirements.txt; \
apk del .build-deps;
2023-04-18 17:17:27 +02:00
#EXPOSE 9090
2023-04-19 20:13:35 +02:00
USER 1000
2023-04-17 05:26:22 +02:00
ENTRYPOINT ["./start.sh"]