chore: cleanup and fix Dockerfile for development
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Víðir Valberg Guðmundsson 2024-08-09 08:33:14 +02:00
parent 00c615f318
commit 52b38abf2a
2 changed files with 10 additions and 13 deletions

View file

@ -21,7 +21,7 @@ WORKDIR /app
RUN groupadd -g 1000 www && useradd -u 1000 -ms /bin/bash -g www www RUN groupadd -g 1000 www && useradd -u 1000 -ms /bin/bash -g www www
# Only copy the requirements file first to leverage Docker cache # Only copy the requirements file first to leverage Docker cache
COPY $REQUIREMENTS_FILE . COPY $REQUIREMENTS_FILE $REQUIREMENTS_FILE
RUN mkdir -p /app/src/static && \ RUN mkdir -p /app/src/static && \
chown www:www /app/src/static && \ chown www:www /app/src/static && \

View file

@ -12,19 +12,19 @@ authors = [
{ name = "Víðir Valberg Guðmundsson", email = "valberg@orn.li" }, { name = "Víðir Valberg Guðmundsson", email = "valberg@orn.li" },
] ]
dependencies = [ dependencies = [
"Django>=5.1b1,<5.2", "Django~=5.1",
"django-money~=3.5",
"django-allauth~=0.63", "django-allauth~=0.63",
"psycopg[binary]~=3.2", "django-money~=3.5",
"environs[django]>=11,<12", "django-oauth-toolkit~=2.4",
"uvicorn~=0.30",
"whitenoise~=6.7",
"django-zen-queries~=2.1",
"django-registries==0.0.3", "django-registries==0.0.3",
"django-view-decorator==0.0.4", "django-view-decorator==0.0.4",
"django-oauth-toolkit~=2.4", "django-zen-queries~=2.1",
"django_stubs_ext~=5.0", "django_stubs_ext~=5.0",
"environs[django]>=11,<12",
"psycopg[binary]~=3.2",
"stripe~=10.5", "stripe~=10.5",
"uvicorn~=0.30",
"whitenoise~=6.7",
] ]
version = "0.0.1" version = "0.0.1"
@ -56,15 +56,12 @@ dependencies = [
[[tool.hatch.envs.tests.matrix]] [[tool.hatch.envs.tests.matrix]]
python = ["3.12"] python = ["3.12"]
django = ["5.1b1"] django = ["5.1"]
[tool.hatch.envs.tests.overrides] [tool.hatch.envs.tests.overrides]
matrix.django.dependencies = [ matrix.django.dependencies = [
{ value = "django~={matrix:django}" }, { value = "django~={matrix:django}" },
] ]
matrix.python.dependencies = [
{ value = "typing_extensions==4.5.0", if = ["3.10"]},
]
[tool.hatch.envs.default.scripts] [tool.hatch.envs.default.scripts]
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src --cov=tests --cov=append {args}" cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src --cov=tests --cov=append {args}"