forked from uncloud/uncloud
Add 2nd dockerfile for debian based systems
To move forward while ldap doesn't build
This commit is contained in:
parent
df7b36c623
commit
174479f6d7
2 changed files with 32 additions and 9 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,19 +1,16 @@
|
||||||
FROM python:3.10.0-alpine3.15
|
FROM python:3.10.0
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
COPY requirements.txt ./
|
COPY requirements.txt ./
|
||||||
# OS requirements for building wheel and for operating uncloud
|
# OS requirements for building wheel and for operating uncloud
|
||||||
RUN apk update && apk add \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
openldap-dev \
|
git \
|
||||||
postgresql-dev \
|
libldap-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxslt-dev \
|
libxslt-dev \
|
||||||
gcc \
|
libpq-dev \
|
||||||
git \
|
wireguard-tools
|
||||||
python3-dev \
|
|
||||||
musl-dev \
|
|
||||||
wireguard-tools-wg
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
26
Dockerfile.alpine-linux
Normal file
26
Dockerfile.alpine-linux
Normal 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 . .
|
Loading…
Reference in a new issue