Skip to content

Commit

Permalink
🐛 fix docker bug
Browse files Browse the repository at this point in the history
update workflow

update toml

remove command

:bug: Dockerfile error
  • Loading branch information
bruceunx committed Apr 29, 2024
1 parent 1d0ff57 commit bd4bd97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
**/__pycache__
tests/
pyproject.toml
snyc.json
3 changes: 2 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: build image

on:
push:
tags: [v\d+\.\d+\.\d+]
branches:
- main

jobs:
build-and-push:
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ COPY requirements.txt requirements.txt

RUN pip install -r requirements.txt --no-cache-dir

COPY ./gpt_server /app
COPY ./gpt_server /app/gpt_server

CMD ["uvicorn", "gpt_server:app", "--host", "0.0.0.0", "--port", "8000"]

0 comments on commit bd4bd97

Please sign in to comment.