|
@@ -4,13 +4,14 @@ FROM python:3.8.10
|
4
|
4
|
# Set the working directory in the container
|
5
|
5
|
WORKDIR /opt/attendance
|
6
|
6
|
|
7
|
|
-# Copy the current directory contents into the container at /usr/src/app
|
|
7
|
+# Copy the current directory contents into the container at /opt/attendance
|
8
|
8
|
COPY . .
|
9
|
9
|
|
10
|
10
|
# Install any needed packages specified in requirements.txt
|
11
|
|
-RUN pip install --no-cache-dir -r requirements.txt
|
|
11
|
+RUN apt update && apt install -y libgl1-mesa-glx && apt --fix-broken install && \
|
|
12
|
+ pip install --no-cache-dir -r requirements.txt
|
12
|
13
|
|
13
|
|
-# Make port 80 available to the world outside this container
|
|
14
|
+# Make port 5003 available to the world outside this container
|
14
|
15
|
EXPOSE 5003
|
15
|
16
|
|
16
|
17
|
# Run app.py when the container launches
|