Skip to content

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

feat: update Dockerfile to enable containerized runs

Shivam-Amina3bacdc3c11e
diff --git a/Dockerfile b/Dockerfile
index 5ab7e19fe..8d3f95089 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,23 +1,22 @@
# Use the official Python image with Python 3.11
FROM python:3.11-slim
+# set gdal version as some packages requires gdal.
+ENV GDAL_VERSION=3.6.3
+
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH=/app/finceptTerminal
-# Set the working directory
-WORKDIR /app/finceptTerminal
-
-ENV PYTHONDONTWRITEBYTECODE=1
-ENV PYTHONUNBUFFERED=1
-
# Set the working directory
WORKDIR /app
# Install system dependencies for psycopg2, mysqlclient, and other build tools
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
+ gdal-bin \
+ libgdal-dev \
libpq-dev \
libmariadb-dev \
python3-dev \
@@ -29,12 +28,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# Copy the requirements file
COPY requirements.txt .
-# Remove 'pywin32' from requirements.txt and install dependencies
-RUN grep -v 'pywin32' requirements.txt > filtered-requirements.txt && \
- pip install --no-cache-dir -r filtered-requirements.txt
+RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Specify the command to run your application
-CMD ["python", "fincept_terminal/cli.py"]
+CMD ["python", "-m", "fincept_terminal.FinceptTerminalStart"]