Skip to content

Commit

Permalink
[Dockerfile]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Feb 9, 2024
1 parent c6910d0 commit 4220ae4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Use the official PyTorch image as the base image
FROM nvcr.io/nvidia/pytorch:24.01-py3

# Set the working directory in the container
WORKDIR /app

# Copy the Python API script to the container
COPY api.py /app/api.py

# Copy the requirements file to the container
COPY requirements.txt /app/requirements.txt

# Set environment variables
ENV WORLD_SIZE=4
ENV ARTIFACTS_PATH=/app/artifacts
ENV STORAGE_PATH=/app/storage

# Run the command to download the requirements
RUN python -m pip install -r requirements.txt

# Set the entrypoint command for the container
CMD ["python", "api.py"]
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Base swarms code -> fastapi code is added to top and bottom -> agent is decorate
- Skypilot for container management
- Stripe for payment tracking
- Postresql for database
- TensorRT for inference
- Docker for cluster management
- Kubernetes for managing and autoscaling docker containers



Expand Down

0 comments on commit 4220ae4

Please sign in to comment.