chore: update .dockerignore to include Pipfile and Pipfile.lock, add cryptography to requirements.txt, and modify compose-test.yaml for port mapping and volume path
Some checks failed
test / build (push) Successful in 5s
test / deploy (push) Failing after 2s

This commit is contained in:
Kai 2025-03-24 13:58:19 +08:00
parent 25f86068d0
commit 95515754cc
3 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,6 @@ __pycache__/
.gitignore
# 忽略依赖文件(除非你希望它们存在于镜像中)
requirements.txt
Pipfile
Pipfile.lock

View File

@ -1,9 +1,9 @@
version: '3'
services:
my-django:
image: gitea.xkkxyy.com/Kai/my-django:latest
image: my-django:latest
command: ["uvicorn", "mysite.asgi:application", "--host=0.0.0.0", "--port=80", "--reload"]
ports:
- 8080:80
deploy:
mode: replicated
replicas: 1
@ -11,4 +11,4 @@ services:
env: test
restart: unless-stopped
volumes:
- /opt/docker/data:/tmp/data
- ../../my-django:/opt/my-django

View File

@ -1,4 +1,5 @@
uvicorn
cryptography
Django~=5.1.5
djangorestframework~=3.15.2
django-filter~=25.1