add .dockerignore

This commit is contained in:
Nico Schottelius 2021-12-18 22:13:16 +01:00
parent 7782aeb470
commit 35773a2f3b
5 changed files with 33 additions and 19 deletions

4
.dockerignore Normal file
View file

@ -0,0 +1,4 @@
Dockerfile*
db.sqlite3
venv
k8s/

View file

@ -1,17 +0,0 @@
FROM python:3.10.0
WORKDIR /usr/src/app
COPY requirements.txt ./
# OS requirements for building wheel and for operating uncloud
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
libldap-dev \
libxml2-dev \
libxslt-dev \
libpq-dev \
libsasl2-dev \
wireguard-tools
RUN pip install --no-cache-dir -r requirements.txt
COPY . .

1
Dockerfile Symbolic link
View file

@ -0,0 +1 @@
Dockerfile.alpine-linux

17
Dockerfile.debian Normal file
View file

@ -0,0 +1,17 @@
FROM python:3.10.0
WORKDIR /usr/src/app
COPY requirements.txt ./
# OS requirements for building wheel and for operating uncloud
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
libldap-dev \
libxml2-dev \
libxslt-dev \
libpq-dev \
libsasl2-dev \
wireguard-tools
RUN pip install --no-cache-dir -r requirements.txt
COPY . .

View file

@ -14,8 +14,14 @@ fi
case "$target" in case "$target" in
dev) dev)
docker tag $name harbor.default.svc.c2.k8s.ooo/ungleich-public/${name} url=harbor.default.svc.c2.k8s.ooo/ungleich-public
docker push harbor.default.svc.c2.k8s.ooo/ungleich-public/${name} docker tag $name ${url}/${name}
docker push ${url}/${name}
;;
prod)
url=harbor.ungleich.svc.p10.k8s.ooo/ungleich-public
docker tag $name ${url}/${name}
docker push ${url}/${name}
;; ;;
"") "")
echo "Not pushing anywhere" echo "Not pushing anywhere"

3
uncloud/.dockerignore Normal file
View file

@ -0,0 +1,3 @@
local_settings.py
ldap_max_uid_file
.env