Compare commits
3 commits
main
...
initial-do
Author | SHA1 | Date | |
---|---|---|---|
adb34c8869 | |||
d9c589e9c5 | |||
ba77b6741a |
3 changed files with 51 additions and 3 deletions
27
.dockerignore
Normal file
27
.dockerignore
Normal 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
21
Dockerfile
Normal 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"]
|
|
@ -7,14 +7,14 @@ idna==3.10
|
||||||
pip-install==1.3.5
|
pip-install==1.3.5
|
||||||
Mastodon.py==1.8.1
|
Mastodon.py==1.8.1
|
||||||
numpy==2.2.1
|
numpy==2.2.1
|
||||||
pillow==11.1.0
|
pillow==11.0.0
|
||||||
python-dateutil==2.9.0.post0
|
python-dateutil==2.9.0.post0
|
||||||
python-magic==0.4.27
|
python-magic==0.4.27
|
||||||
PyYAML==6.0.2
|
PyYAML==6.0.2
|
||||||
requests==2.32.3
|
requests==2.32.3
|
||||||
shapely==2.0.6
|
shapely==2.0.6
|
||||||
six==1.17.0
|
six==1.16.0
|
||||||
SQLAlchemy==2.0.37
|
SQLAlchemy==2.0.37
|
||||||
staticmap==0.5.7
|
staticmap==0.5.7
|
||||||
typing_extensions==4.12.2
|
typing_extensions==4.12.2
|
||||||
urllib3==2.3.0
|
urllib3==2.2.3
|
||||||
|
|
Loading…
Add table
Reference in a new issue