File: Dockerfile

package info (click to toggle)
nsscache 0.49-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,664 kB
  • sloc: python: 8,661; xml: 584; sh: 304; makefile: 19
file content (18 lines) | stat: -rw-r--r-- 427 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.10
RUN apt-get update
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y libsasl2-dev libldap2-dev libssl-dev slapd ldap-utils

ENV VIRTUAL_ENV=/opt/venv
RUN python -m venv $VIRTUAL_ENV
ENV PATH=$VIRTUAL_ENV/bin:$PATH

WORKDIR /code

ADD ./requirements.txt /code/requirements.txt
RUN pip install -r requirements.txt

ADD . /code
RUN python setup.py test
RUN python setup.py install
RUN tests/slapd-regtest