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 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"]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user