Skip to content

Commit

Permalink
>chores : define Dockerfile and build using astral/uv
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-arfa committed Nov 20, 2024
1 parent 0c57095 commit 976e4e4
Show file tree
Hide file tree
Showing 6 changed files with 175 additions and 0 deletions.
1 change: 1 addition & 0 deletions birds_nest/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.13
21 changes: 21 additions & 0 deletions birds_nest/Dockerfile
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 added birds_nest/README.md
Empty file.
6 changes: 6 additions & 0 deletions birds_nest/docker-compose.yaml
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"
11 changes: 11 additions & 0 deletions birds_nest/pyproject.toml
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",
]
136 changes: 136 additions & 0 deletions birds_nest/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 976e4e4

Please sign in to comment.