Skip to content

Commit

Permalink
Update Dockerfile and add render.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sahi-mfg committed Dec 4, 2023
1 parent b86b865 commit ce90564
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.fastapi
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ COPY requirements.txt /tmp/
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
COPY . /app/

CMD ["uvicorn","main:app", "--port","5001", "--host","127.0.0"]
CMD ["uvicorn","main:app", "--port","5001", "--host","0.0.0.0"]
6 changes: 6 additions & 0 deletions render.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
- type: web
name: fastapi-service
env: docker
buildCommand: docker build -t fastapi-service .
startCommand: docker run -p 10000:80 fastapi-service

0 comments on commit ce90564

Please sign in to comment.