adds Dockerfile

This commit is contained in:
julian 2025-01-27 15:50:43 -05:00
parent a42ad6dab3
commit 74c9d4ea44
2 changed files with 18 additions and 1 deletions

3
.gitignore vendored
View File

@ -418,4 +418,5 @@ tags
[._]*.un~ [._]*.un~
.vscode .vscode
.github .github
generated_samples/ generated_samples/
huggingface

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
# Use the PyTorch base image
FROM pytorch/pytorch:latest
# Set the working directory inside the container
WORKDIR /app
# Copy the current directory into the container
COPY . /app
# Install necessary Python packages
RUN pip install -e . && \
pip install fastapi python-multipart uvicorn
# Set the entrypoint for the container to launch your FastAPI app
CMD ["python", "demo/fastapi_app.py"]