Skip to content

Commit

Permalink
Add all api files
Browse files Browse the repository at this point in the history
  • Loading branch information
Teddy-1000 committed Jan 25, 2024
1 parent 47d83b6 commit 423647b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions api/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
requirments.in
**/__pycache__.py
**/datastore_pb2*.py
4 changes: 2 additions & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ RUN python -m grpc_tools.protoc \
--python_out="${DOCKER_PATH}" \
--grpc_python_out="${DOCKER_PATH}"

COPY "./main.py" "${DOCKER_PATH}/main.py"
COPY "./metadata_endpoints.py" "${DOCKER_PATH}/metadata_endpoints.py"
COPY "./**/*" "${DOCKER_PATH}/"


WORKDIR "${DOCKER_PATH}"
CMD ["gunicorn", "main:app", "--workers=4", "--worker-class=uvicorn.workers.UvicornWorker", "--bind=0.0.0.0:8000"]

0 comments on commit 423647b

Please sign in to comment.