Some checks failed
Assistant: codex Assistant-Model: gpt-6.1-sol Assistant-Session: 01a1468b-63fa-7710-85dc-8f2e16b3ebfa
12 lines
651 B
Docker
12 lines
651 B
Docker
FROM lldap/lldap:stable@sha256:2a8454b668c1aba7157e832eab0e242e1e7eb5fb7591d7e7774ba05286511ca8 AS lldap
|
|
FROM python:3.12-slim@sha256:d764629ce0ddd8c71fd371e9901efb324a95789d2315a47db7e4d27e78f1b0e9
|
|
RUN useradd --create-home --uid 10001 provisioner
|
|
WORKDIR /app
|
|
COPY --from=lldap /app/lldap_set_password /app/lldap_set_password
|
|
COPY requirements-postgres.txt /app/
|
|
RUN python -m pip install --no-cache-dir --require-hashes -r /app/requirements-postgres.txt
|
|
COPY provisioner.py group_provenance.py group_provenance_postgres.py password_setup.py server.py /app/
|
|
COPY migrations/ /app/migrations/
|
|
USER 10001:10001
|
|
EXPOSE 8080
|
|
CMD ["python", "server.py"]
|