aboutsummaryrefslogtreecommitdiff
path: root/backend/worker/Dockerfile
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2024-05-15 23:23:57 +0300
committeromagdy7 <omar.professional8777@gmail.com>2024-05-15 23:23:57 +0300
commitcf857bc8af5ac3725f3bdb40dcdc80752595652f (patch)
tree72545ee4f47e133af811b8fb37db405e9b624c1d /backend/worker/Dockerfile
parent1aa678533f0d21f8696754b1a1f456827f249b1c (diff)
downloadcloudrender-cf857bc8af5ac3725f3bdb40dcdc80752595652f.tar.xz
cloudrender-cf857bc8af5ac3725f3bdb40dcdc80752595652f.zip
Final version of backend and frontend
Diffstat (limited to 'backend/worker/Dockerfile')
-rw-r--r--backend/worker/Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/backend/worker/Dockerfile b/backend/worker/Dockerfile
new file mode 100644
index 0000000..8752e1c
--- /dev/null
+++ b/backend/worker/Dockerfile
@@ -0,0 +1,17 @@
+# Use an official Python runtime as a parent image
+FROM python:3.9-slim
+
+# Install dependencies for OpenCV using yum
+RUN apt-get update && apt-get install -y libgl1 libglib2.0-0
+
+# Set the working directory
+WORKDIR /worker
+
+# Copy the current directory contents into the container at /app
+COPY . /worker
+
+# Install any needed packages specified in requirements.txt
+RUN pip install --no-cache-dir -r requirements.txt
+
+# Run worker.py when the container launches
+CMD ["python", "worker.py"]