We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 856163f commit e45561aCopy full SHA for e45561a
1 file changed
Dockerfile
@@ -4,10 +4,14 @@ ENV PROJECT_HOME=/data
4
RUN mkdir /data
5
6
# Set the working directory in the container
7
-WORKDIR /usr/local/bin
+WORKDIR ${PROJECT_HOME}
8
9
-# Copy the script into the container at /usr/src/app
10
-COPY ./script.py /usr/local/bin/
+# Install runtime dependencies
+COPY requirements.txt .
11
+RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+# Copy necessary files
14
+COPY main.py /usr/local/bin
15
16
# Run the script when the container launches
-ENTRYPOINT ["python", "/usr/local/bin/script.py"]
17
+ENTRYPOINT ["python", "/usr/local/bin/main.py"]
0 commit comments