Skip to content

Commit

Permalink
dockerized the backend
Browse files Browse the repository at this point in the history
  • Loading branch information
mistir-nigusse committed Aug 15, 2024
1 parent 8b625f0 commit 18fc864
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
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"]
16 changes: 16 additions & 0 deletions Makefile
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__
16 changes: 16 additions & 0 deletions pyproject.toml
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"

0 comments on commit 18fc864

Please sign in to comment.