forked from uncloud/uncloud
add .dockerignore
This commit is contained in:
parent
7782aeb470
commit
35773a2f3b
5 changed files with 33 additions and 19 deletions
4
.dockerignore
Normal file
4
.dockerignore
Normal file
|
@ -0,0 +1,4 @@
|
|||
Dockerfile*
|
||||
db.sqlite3
|
||||
venv
|
||||
k8s/
|
17
Dockerfile
17
Dockerfile
|
@ -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
1
Dockerfile
Symbolic link
|
@ -0,0 +1 @@
|
|||
Dockerfile.alpine-linux
|
17
Dockerfile.debian
Normal file
17
Dockerfile.debian
Normal 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 . .
|
10
build.sh
10
build.sh
|
@ -14,8 +14,14 @@ fi
|
|||
|
||||
case "$target" in
|
||||
dev)
|
||||
docker tag $name harbor.default.svc.c2.k8s.ooo/ungleich-public/${name}
|
||||
docker push harbor.default.svc.c2.k8s.ooo/ungleich-public/${name}
|
||||
url=harbor.default.svc.c2.k8s.ooo/ungleich-public
|
||||
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"
|
||||
|
|
3
uncloud/.dockerignore
Normal file
3
uncloud/.dockerignore
Normal file
|
@ -0,0 +1,3 @@
|
|||
local_settings.py
|
||||
ldap_max_uid_file
|
||||
.env
|
Loading…
Reference in a new issue