Add 2nd dockerfile for debian based systems

To move forward while ldap doesn't build
This commit is contained in:
Nico Schottelius 2021-12-05 11:11:34 +01:00
parent df7b36c623
commit 174479f6d7
2 changed files with 32 additions and 9 deletions

View File

@ -1,19 +1,16 @@
FROM python:3.10.0-alpine3.15
FROM python:3.10.0
WORKDIR /usr/src/app
COPY requirements.txt ./
# OS requirements for building wheel and for operating uncloud
RUN apk update && apk add \
openldap-dev \
postgresql-dev \
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
libldap-dev \
libxml2-dev \
libxslt-dev \
gcc \
git \
python3-dev \
musl-dev \
wireguard-tools-wg
libpq-dev \
wireguard-tools
RUN pip install --no-cache-dir -r requirements.txt
COPY . .

26
Dockerfile.alpine-linux Normal file
View File

@ -0,0 +1,26 @@
# Currently not working due do ldap:
#
# /usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lldap_r
#
# While trying to install python-ldap
FROM python:3.10.0-alpine3.15
WORKDIR /usr/src/app
COPY requirements.txt ./
# OS requirements for building wheel and for operating uncloud
RUN apk update && apk add \
gcc \
git \
libxml2-dev \
libxslt-dev \
libffi-dev \
openldap-dev \
postgresql-dev \
python3-dev \
musl-dev \
wireguard-tools-wg
RUN pip install --no-cache-dir -r requirements.txt
COPY . .