Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
osama-shawir committed Dec 9, 2023
1 parent 89b55f2 commit 1a8d9a6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 272 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,5 @@ cython_debug/

*_keys.json


# env variables
*env
11 changes: 0 additions & 11 deletions Dockerfile

This file was deleted.

12 changes: 0 additions & 12 deletions Makefile

This file was deleted.

235 changes: 0 additions & 235 deletions requirements.txt

This file was deleted.

14 changes: 1 addition & 13 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
FROM python:3.9

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

COPY ./ /code

CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "80"]

# Use an official Python runtime as a parent image
FROM python:3.9-slim-buster

Expand All @@ -28,4 +16,4 @@ RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 80

# Run app.py when the container launches
CMD ["uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "80"]
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]

0 comments on commit 1a8d9a6

Please sign in to comment.