-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (16 loc) · 770 Bytes
/
Copy pathDockerfile
File metadata and controls
21 lines (16 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM nvcr.io/nvidia/tensorflow:24.05-tf2-py3
# 2. Set the working directory inside the container
WORKDIR /workspace
# 3. Copy and install Python requirements
# This step is cached, so it only runs when requirements.txt changes
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 4. Copy your source code into the container's /workspace directory
COPY ./src ./src
COPY pyproject.toml README.md LICENSE ./
# 5. Install the package so `import dl_techniques` resolves at runtime
RUN pip install --no-cache-dir -e .
# 6. [OPTIONAL] Set a default command that keeps the container running
# This command does nothing but prevents the container from exiting immediately.
# It's useful if you want a long-running container to attach to.
CMD ["bash"]