-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b625f0
commit 18fc864
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM python:3.10-slim | ||
|
||
WORKDIR /backend | ||
|
||
COPY . /backend | ||
|
||
RUN pip install --no-cache-dir poetry && \ | ||
poetry config virtualenvs.create false && \ | ||
poetry install --no-interaction --no-ansi | ||
|
||
EXPOSE 80 | ||
|
||
ENV NAME LLM_Prompt_Engine | ||
|
||
CMD ["python", "app.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.PHONY: install test docker-build docker-run clean | ||
|
||
install: | ||
poetry install | ||
|
||
test: | ||
poetry run pytest | ||
|
||
docker-build: | ||
docker build -t llm_prompt_engine . | ||
|
||
docker-run: | ||
docker run -p 80:80 llm_prompt_engine | ||
|
||
clean: | ||
rm -rf __pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[tool.poetry] | ||
name = "llm_prompt_engine" | ||
version = "0.1.0" | ||
description = "A prompt engine for large language models" | ||
authors = ["Mistir Nigusse <mistirnigusse0@gmail.com>"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.10" | ||
# Add your other dependencies here | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^7.0" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |