-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
>chores : define Dockerfile and build using astral/uv
- Loading branch information
1 parent
0c57095
commit 976e4e4
Showing
6 changed files
with
175 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM python:3-alpine | ||
|
||
# The installer requires curl (and certificates) to download the release archive | ||
RUN apk add --no-cache curl | ||
|
||
# Download the latest installer | ||
ADD https://astral.sh/uv/install.sh /uv-installer.sh | ||
|
||
# Run the installer then remove it | ||
RUN sh /uv-installer.sh && rm /uv-installer.sh | ||
|
||
# Ensure the installed binary is on the `PATH` | ||
ENV PATH="/root/.local/bin/:$PATH" | ||
|
||
COPY . . | ||
|
||
RUN uv sync --frozen | ||
|
||
EXPOSE 8000 | ||
|
||
CMD ["uv","run", "manage.py", "runserver", "0.0.0.0:8000"] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
services: | ||
web: | ||
build: . | ||
container_name: birds_nest_web | ||
ports: | ||
- "8000:8000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[project] | ||
name = "birds-nest" | ||
version = "0.1.0" | ||
description = "Add your description here" | ||
readme = "README.md" | ||
requires-python = ">=3.13" | ||
dependencies = [ | ||
"django>=5.1.3", | ||
"pyecore>=0.15.1", | ||
"unidecode>=1.3.8", | ||
] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.