docker
This commit is contained in:
parent
fe13e89d8a
commit
f7a4b6ab72
@ -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"]
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user