Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
FROM ubuntu:22.04
|
| 2 |
|
| 3 |
-
# Set
|
| 4 |
-
|
|
|
|
| 5 |
|
| 6 |
# Install system dependencies
|
| 7 |
RUN apt-get update && apt-get install -y \
|
|
@@ -11,6 +12,7 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
libtesseract-dev \
|
| 12 |
poppler-utils \
|
| 13 |
libopencv-dev \
|
|
|
|
| 14 |
&& apt-get clean \
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
|
|
@@ -22,7 +24,7 @@ RUN pip3 install --no-cache-dir -r requirements.txt
|
|
| 22 |
COPY app.py .
|
| 23 |
|
| 24 |
# Expose port for FastAPI
|
| 25 |
-
EXPOSE
|
| 26 |
|
| 27 |
# Command to run FastAPI
|
| 28 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 1 |
FROM ubuntu:22.04
|
| 2 |
|
| 3 |
+
# Set time zone to Asia/Kolkata (IST)
|
| 4 |
+
ENV TZ=Asia/Kolkata
|
| 5 |
+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
| 6 |
|
| 7 |
# Install system dependencies
|
| 8 |
RUN apt-get update && apt-get install -y \
|
|
|
|
| 12 |
libtesseract-dev \
|
| 13 |
poppler-utils \
|
| 14 |
libopencv-dev \
|
| 15 |
+
tzdata \
|
| 16 |
&& apt-get clean \
|
| 17 |
&& rm -rf /var/lib/apt/lists/*
|
| 18 |
|
|
|
|
| 24 |
COPY app.py .
|
| 25 |
|
| 26 |
# Expose port for FastAPI
|
| 27 |
+
EXPOSE 7860
|
| 28 |
|
| 29 |
# Command to run FastAPI
|
| 30 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|