Skip to content

Commit a87c462

Browse files
author
Tom Softreck
committed
first draft
1 parent 7f072a8 commit a87c462

File tree

8 files changed

+583
-0
lines changed

8 files changed

+583
-0
lines changed

caddy/.gitignore

Lines changed: 351 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,351 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# poetry
98+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102+
#poetry.lock
103+
104+
# pdm
105+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106+
#pdm.lock
107+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108+
# in version control.
109+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
110+
.pdm.toml
111+
.pdm-python
112+
.pdm-build/
113+
114+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
115+
__pypackages__/
116+
117+
# Celery stuff
118+
celerybeat-schedule
119+
celerybeat.pid
120+
121+
# SageMath parsed files
122+
*.sage.py
123+
124+
# Environments
125+
.env
126+
.venv
127+
env/
128+
venv/
129+
ENV/
130+
env.bak/
131+
venv.bak/
132+
133+
# Spyder project settings
134+
.spyderproject
135+
.spyproject
136+
137+
# Rope project settings
138+
.ropeproject
139+
140+
# mkdocs documentation
141+
/site
142+
143+
# mypy
144+
.mypy_cache/
145+
.dmypy.json
146+
dmypy.json
147+
148+
# Pyre type checker
149+
.pyre/
150+
151+
# pytype static type analyzer
152+
.pytype/
153+
154+
# Cython debug symbols
155+
cython_debug/
156+
157+
# PyCharm
158+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
159+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
160+
# and can be added to the global gitignore or merged into this file. For a more nuclear
161+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
162+
#.idea/
163+
164+
# Byte-compiled / optimized / DLL files
165+
__pycache__/
166+
*.py[cod]
167+
*$py.class
168+
169+
# C extensions
170+
*.so
171+
172+
# Distribution / packaging
173+
.Python
174+
build/
175+
develop-eggs/
176+
dist/
177+
downloads/
178+
eggs/
179+
.eggs/
180+
lib/
181+
lib64/
182+
parts/
183+
sdist/
184+
var/
185+
wheels/
186+
pip-wheel-metadata/
187+
share/python-wheels/
188+
*.egg-info/
189+
.installed.cfg
190+
*.egg
191+
MANIFEST
192+
193+
# PyInstaller
194+
# Usually these files are written by a python script from a template
195+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
196+
*.manifest
197+
*.spec
198+
199+
# Installer logs
200+
pip-log.txt
201+
pip-delete-this-directory.txt
202+
203+
# Unit test / coverage reports
204+
htmlcov/
205+
.tox/
206+
.nox/
207+
.coverage
208+
.coverage.*
209+
.cache
210+
nosetests.xml
211+
coverage.xml
212+
*.cover
213+
*.py,cover
214+
.hypothesis/
215+
.pytest_cache/
216+
217+
# Translations
218+
*.mo
219+
*.pot
220+
221+
# Django stuff:
222+
*.log
223+
local_settings.py
224+
db.sqlite3
225+
db.sqlite3-journal
226+
227+
# Flask stuff:
228+
instance/
229+
.webassets-cache
230+
231+
# Scrapy stuff:
232+
.scrapy
233+
234+
# Sphinx documentation
235+
docs/_build/
236+
237+
# PyBuilder
238+
target/
239+
240+
# Jupyter Notebook
241+
.ipynb_checkpoints
242+
243+
# IPython
244+
profile_default/
245+
ipython_config.py
246+
247+
# pyenv
248+
.python-version
249+
250+
# pipenv
251+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
252+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
253+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
254+
# install all needed dependencies.
255+
#Pipfile.lock
256+
257+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
258+
__pypackages__/
259+
260+
# Celery stuff
261+
celerybeat-schedule
262+
celerybeat.pid
263+
264+
# SageMath parsed files
265+
*.sage.py
266+
267+
# Environments
268+
.env
269+
.env.local
270+
.env.production
271+
.env.staging
272+
.env.test
273+
.venv
274+
env/
275+
venv/
276+
ENV/
277+
env.bak/
278+
venv.bak/
279+
280+
# Spyder project settings
281+
.spyderproject
282+
.spyproject
283+
284+
# Rope project settings
285+
.ropeproject
286+
287+
# mkdocs documentation
288+
/site
289+
290+
# mypy
291+
.mypy_cache/
292+
.dmypy.json
293+
dmypy.json
294+
295+
# Pyre type checker
296+
.pyre/
297+
298+
# PyDock specific
299+
pydock.json
300+
pydock-*.json
301+
.pydock/
302+
deployments/
303+
backups/
304+
logs/
305+
*.pid
306+
307+
# Docker
308+
.docker/
309+
docker-compose.override.yml
310+
Dockerfile.prod
311+
Caddyfile.prod
312+
313+
# IDE
314+
.vscode/
315+
.idea/
316+
*.swp
317+
*.swo
318+
*~
319+
.env
320+
321+
# OS
322+
.DS_Store
323+
.DS_Store?
324+
._*
325+
.Spotlight-V100
326+
.Trashes
327+
ehthumbs.db
328+
Thumbs.db
329+
330+
# Temporary files
331+
*.tmp
332+
*.temp
333+
.temp/
334+
335+
# SSH keys
336+
*.pem
337+
*.key
338+
id_rsa*
339+
id_ed25519*
340+
341+
# Cloudflare
342+
cloudflare-*.json
343+
344+
# Node.js (for web components)
345+
node_modules/
346+
npm-debug.log*
347+
yarn-debug.log*
348+
yarn-error.log*
349+
350+
# Poetry
351+
poetry.lock

caddy/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM python:3.11-slim
2+
3+
WORKDIR /app
4+
5+
COPY app/ app/
6+
RUN pip install fastapi uvicorn
7+
8+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]

0 commit comments

Comments
 (0)