bikas commited on
Commit
35fa184
·
1 Parent(s): 0ba2525

Card Cropping

Browse files
Files changed (1) hide show
  1. Dockerfile +37 -0
Dockerfile CHANGED
@@ -1,3 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Developer Bikas
2
 
3
  # Use the official Python image from the Docker Hub
@@ -19,6 +53,9 @@ COPY requirements.txt .
19
  # Install any needed packages specified in requirements.txt
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
 
 
 
22
  # Copy the current directory contents into the container at /app
23
  COPY . .
24
 
 
1
+ # # Developer Bikas
2
+
3
+ # # Use the official Python image from the Docker Hub
4
+ # FROM python:3.10.0-slim-buster
5
+
6
+ # # Upgrade pip to the latest version and install dependencies in one RUN command
7
+ # RUN apt-get update && \
8
+ # apt-get install -y git libgl1-mesa-glx libglib2.0-0 && \
9
+ # python -m pip install --upgrade pip setuptools wheel && \
10
+ # apt-get clean && \
11
+ # rm -rf /var/lib/apt/lists/*
12
+
13
+ # # Set the working directory in the container
14
+ # WORKDIR /app
15
+
16
+ # # Copy requirements.txt into the container at /app
17
+ # COPY requirements.txt .
18
+
19
+ # # Install any needed packages specified in requirements.txt
20
+ # RUN pip install --no-cache-dir -r requirements.txt
21
+
22
+ # # Copy the current directory contents into the container at /app
23
+ # COPY . .
24
+
25
+ # # Make port 7860 available to the world outside this container
26
+ # EXPOSE 7860
27
+
28
+ # # Define environment variable (if needed)
29
+ # # ENV FLASK_APP=app.py
30
+
31
+ # # Command to run the application using Gunicorn
32
+ # CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
33
+
34
+
35
  # Developer Bikas
36
 
37
  # Use the official Python image from the Docker Hub
 
53
  # Install any needed packages specified in requirements.txt
54
  RUN pip install --no-cache-dir -r requirements.txt
55
 
56
+ # Create a directory for output within the application directory
57
+ RUN mkdir /app/output
58
+
59
  # Copy the current directory contents into the container at /app
60
  COPY . .
61