mirror of
https://github.com/deepseek-ai/Janus.git
synced 2025-02-23 06:08:59 -05:00
adds Dockerfile
This commit is contained in:
parent
a42ad6dab3
commit
74c9d4ea44
3
.gitignore
vendored
3
.gitignore
vendored
@ -418,4 +418,5 @@ tags
|
|||||||
[._]*.un~
|
[._]*.un~
|
||||||
.vscode
|
.vscode
|
||||||
.github
|
.github
|
||||||
generated_samples/
|
generated_samples/
|
||||||
|
huggingface
|
||||||
|
16
Dockerfile
Normal file
16
Dockerfile
Normal 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"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user