File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Include Python
2
2
FROM python:3.10-alpine
3
3
4
+ # Label your image with metadata
5
+ LABEL maintainer=
"[email protected] "
6
+ LABEL org.opencontainers.image.source https://github.com/blib-la/runpod-worker-helloworld
7
+ LABEL org.opencontainers.image.description "Getting started with a serverless endpoint on RunPod by creating a custom workerUI"
8
+
4
9
# Define your working directory
5
10
WORKDIR /
6
11
7
- # Add your src
8
- ADD src/start.sh src/rp_handler.py requirements.txt ./
9
- RUN chmod +x /start.sh
12
+ # Copy the requirements into the image
13
+ COPY requirements.txt ./
10
14
11
15
# Intall dependencies
12
- RUN pip install -r requirements.txt
16
+ RUN apk add --no-cache bash && \
17
+ pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Copy your source code into the image
20
+ COPY src/ .
21
+
22
+ # Make the start script executable
23
+ RUN chmod +x start.sh
13
24
14
25
# Run the start script
15
- CMD /start.sh
26
+ CMD [ " /start.sh" ]
You can’t perform that action at this time.
0 commit comments