-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 712 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# set python version for the base image
FROM python:3.12-slim
# Set working directory in the container
WORKDIR /code
# Copy the dependencies file to the working directory
COPY requirements.txt /code/requirements.txt
# Install any dependencies
RUN pip install -r /code/requirements.txt
# Copy the content of the local src directory (the entire project) to the working directory
COPY ./app /code/app
ENV WANDB_API_KEY=""
ENV WANDB_ORG=""
ENV WANDB_PROJECT=""
ENV WANDB_MODEL_NAME=""
ENV WANDB_MODEL_VERSION=""
# Expose the port FastAPI is running on, port 8080
EXPOSE 8080
# this is the command that will be run when the container starts
CMD ["fastapi", "run", "app/main.py", "--port", "8080", "--reload"]