Compare commits

..

3 commits

Author SHA1 Message Date
adb34c8869 Use uv
Some checks failed
ci/woodpecker/pr/docker-buildx Pipeline failed
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/vulnerability-scan Pipeline was successful
2025-01-11 11:58:05 -08:00
d9c589e9c5 Move to full python:3 as base
Some checks failed
ci/woodpecker/pr/docker-buildx Pipeline failed
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/vulnerability-scan Pipeline was successful
2025-01-11 11:15:11 -08:00
ba77b6741a Initial Dockerfile
Some checks failed
ci/woodpecker/pr/docker-buildx Pipeline failed
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/vulnerability-scan Pipeline was successful
2025-01-11 10:33:13 -08:00
3 changed files with 51 additions and 3 deletions

27
.dockerignore Normal file
View file

@ -0,0 +1,27 @@
**/__pycache__
**/.venv
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/bin
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md

21
Dockerfile Normal file
View file

@ -0,0 +1,21 @@
FROM python:3 AS build
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /app
RUN uv venv
COPY requirements.txt .
RUN uv pip install --system -r requirements.txt
# Copy the project into the intermediate image
ADD . /app
FROM python:3-slim
# Copy the environment, but not the source code
COPY --from=build --chown=app:app /app/.venv /app/.venv
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
USER appuser
CMD ["python", "scl.py"]

View file

@ -7,14 +7,14 @@ idna==3.10
pip-install==1.3.5
Mastodon.py==1.8.1
numpy==2.2.1
pillow==11.1.0
pillow==11.0.0
python-dateutil==2.9.0.post0
python-magic==0.4.27
PyYAML==6.0.2
requests==2.32.3
shapely==2.0.6
six==1.17.0
six==1.16.0
SQLAlchemy==2.0.37
staticmap==0.5.7
typing_extensions==4.12.2
urllib3==2.3.0
urllib3==2.2.3