-
Notifications
You must be signed in to change notification settings - Fork 0
Modernize #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Modernize #2
Changes from all commits
6eaa728
9152c1e
79f3624
8d6d838
f39114d
2223fa9
46368fd
13d136f
8b78365
15be4d8
a25eafe
b6002ed
035f244
0f7c943
c16ad63
0d993f7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # To get started with Dependabot version updates, you'll need to specify which | ||
| # package ecosystems to update and where the package manifests are located. | ||
| # Please see the documentation for all configuration options: | ||
| # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
|
||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "uv" # See documentation for possible values | ||
| directory: "/" # Location of package manifests | ||
| schedule: | ||
| interval: "weekly" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 3.12 |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,12 +1,19 @@ | ||||||
| # syntax=docker/dockerfile:1 | ||||||
| FROM python:3.9 | ||||||
| FROM ubuntu:24.04 | ||||||
|
|
||||||
| ARG UV_VERSION=0.10.9 | ||||||
|
|
||||||
| WORKDIR /app | ||||||
|
|
||||||
| COPY requirements.txt /app/requirements.txt | ||||||
| ENV PATH="/root/.local/bin/:$PATH" | ||||||
|
|
||||||
| RUN apt-get update && apt-get install -y pipx ca-certificates libmagic1 \ | ||||||
| && pipx install "uv==${UV_VERSION}" \ | ||||||
| && apt-get clean && rm -rf /var/lib/apt/lists/* | ||||||
|
|
||||||
| RUN pip3 install --no-cache-dir --upgrade -r /app/requirements.txt | ||||||
| COPY pyproject.toml uv.lock ./ | ||||||
|
||||||
| COPY pyproject.toml uv.lock ./ | |
| COPY pyproject.toml uv.lock README.md ./ |
Copilot
AI
Mar 10, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
COPY . /app will include the entire build context (including .git/ and any locally-created .venv/), which can bloat the image and can also overwrite the virtual environment created by uv sync if a local .venv exists. Adding a .dockerignore to exclude .git, .venv, __pycache__, etc. avoids these issues and makes builds more deterministic.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| [project] | ||
| name = "fileuploader-fastapi" | ||
| version = "0.1.0" | ||
| description = "A FastAPI service for uploading and validating files." | ||
| readme = "README.md" | ||
| requires-python = ">=3.12" | ||
| dependencies = [ | ||
| "fastapi>=0.135.1", | ||
| "python-magic>=0.4.27", | ||
| "python-multipart>=0.0.22", | ||
| "uvicorn>=0.41.0", | ||
| ] | ||
samppanja marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| [build-system] | ||
| requires = ["setuptools>=61", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
This file was deleted.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.