Compare commits
41
Commits
main
..
b374f7cd4f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b374f7cd4f | ||
|
|
c281f1e9ea | ||
|
|
155992f196 | ||
|
|
71e1dec041 | ||
|
|
cd259b0b81 | ||
|
|
d8a419f528 | ||
|
|
925f91a17c | ||
|
|
7abced9315 | ||
|
|
f54941dd80 | ||
|
|
059457deae | ||
|
|
5d3d0b162d | ||
|
|
ea8af383cc | ||
|
|
6e47d43a03 | ||
|
|
88d57c3837 | ||
|
|
9e9907bc00 | ||
|
|
c6fb77c89d | ||
|
|
81f1cfd200 | ||
|
|
e228a2e59c | ||
|
|
8d740be5fb | ||
|
|
6248a2086c | ||
|
|
a6a19b8438 | ||
|
|
2ad7401226 | ||
|
|
e77b2d851d | ||
|
|
2d6debe744 | ||
|
|
30f8204e68 | ||
|
|
fc10b535b2 | ||
|
|
1cdd8fba11 | ||
|
|
993b5bfbb6 | ||
|
|
8472811913 | ||
|
|
a7d8613dd6 | ||
|
|
748213538f | ||
|
|
a1b20e2fc2 | ||
|
|
fc6a555a33 | ||
|
|
a0a52fcaa2 | ||
|
|
56b9aaa021 | ||
|
|
83ac1eb001 | ||
|
|
ed4cd5c14f | ||
|
|
69f5e0465d | ||
|
|
02465f721e | ||
|
|
6c4dfc1855 | ||
|
|
67cf0e1cea |
-31
@@ -1,31 +0,0 @@
|
||||
# Use the latest Python 3.13 slim image for a lightweight base
|
||||
FROM python:3.13-slim
|
||||
|
||||
# Set environment variables
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
# Set work directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies if needed (for Dulwich, etc.)
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy requirements file
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install Python dependencies
|
||||
RUN pip install --no-cache-dir --upgrade pip && \
|
||||
pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy project
|
||||
COPY . .
|
||||
|
||||
# Expose port
|
||||
EXPOSE 9001
|
||||
|
||||
# Run the application
|
||||
CMD ["python", "-m", "retoors.main", "--host", "0.0.0.0", "--port", "9001"]
|
||||
@@ -1,17 +0,0 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "127.0.0.1:9001:9001"
|
||||
volumes:
|
||||
- ./:/app
|
||||
environment:
|
||||
- PYTHONPATH=/app
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
+8
-15
@@ -1,20 +1,13 @@
|
||||
aiohttp
|
||||
jinja2
|
||||
pydantic
|
||||
pytest
|
||||
pytest-asyncio
|
||||
aiofiles
|
||||
pytest-cov
|
||||
rich
|
||||
aiohttp_jinja2
|
||||
pydantic[dotenv]
|
||||
python-dotenv
|
||||
pydantic[email]
|
||||
aiohttp_session
|
||||
cryptography
|
||||
bcrypt
|
||||
python-dotenv
|
||||
aiosmtplib
|
||||
aiojobs
|
||||
aiofiles
|
||||
aiohttp_pydantic
|
||||
bcrypt
|
||||
aiosmtplib
|
||||
|
||||
pytest
|
||||
pytest-aiohttp
|
||||
aiohttp-test-utils
|
||||
pytest-mock
|
||||
pillow
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
with open('requirements.txt') as f:
|
||||
install_requires = f.read().splitlines()
|
||||
|
||||
setup(
|
||||
name="retoors",
|
||||
version="0.1.0",
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
install_requires=install_requires,
|
||||
install_requires=[
|
||||
"aiohttp",
|
||||
"jinja2",
|
||||
],
|
||||
entry_points={
|
||||
"console_scripts": [
|
||||
"retoors=retoors.main:main",
|
||||
],
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user