Skip to content

Commit 428d092

Browse files
first commit
0 parents  commit 428d092

File tree

58 files changed

+1150
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1150
-0
lines changed

.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SQL_NAME = realiq_db
2+
SQL_USER = arun
3+
SQL_PASSWORD = password
4+
HOST= postgres_db
5+
PORT= 5432

Dockerfile

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
FROM python:3.11.4-slim-bullseye
2+
3+
ENV PYTHONUNBUFFERED 1
4+
ENV PYTHONDONTWRITEBYTECODE 1
5+
6+
WORKDIR /app
7+
8+
COPY . /app/
9+
10+
RUN apt-get update \
11+
&& apt-get install -y libpq-dev \
12+
&& rm -rf /var/lib/apt/lists/*
13+
14+
COPY ./requirements.txt .
15+
RUN pip install -r requirements.txt
16+
17+
18+
19+
20+
21+
22+
# # Use a lightweight Python base image
23+
# FROM python:3.9
24+
25+
# # Create a working directory within the container
26+
# WORKDIR /app
27+
28+
# # Copy the project code
29+
# COPY . .
30+
31+
# # Install dependencies from requirements.txt
32+
# RUN pip install -r requirements.txt
33+
34+
# # Expose the Django development port (default: 8000)
35+
# EXPOSE 8000
36+
37+
# # Start the Django development server (assuming manage.py)
38+
# CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
39+
40+
41+
42+
43+
44+
45+
46+
47+
48+
# # Use the official Python image as the base image
49+
# FROM python:3.9
50+
51+
# # Set working directory in the container
52+
# WORKDIR /code
53+
54+
# # Copy requirements.txt file to the container
55+
# COPY requirements.txt .
56+
57+
# # Install dependencies from requirements.txt
58+
# RUN pip install --no-cache-dir -r requirements.txt
59+
60+
# # Copy the rest of the Django project code to the container
61+
# COPY . .
62+
63+
# # Expose port 8000 to the outside world (optional, adjust if using a different port)
64+
# EXPOSE 8000
65+
66+
# # Command to run your Django application (modify as needed)
67+
# CMD ["python", "manage.py", "runserver"]
68+
69+

app/__init__.py

Whitespace-only changes.
112 Bytes
Binary file not shown.
521 Bytes
Binary file not shown.
372 Bytes
Binary file not shown.
4.79 KB
Binary file not shown.
5.05 KB
Binary file not shown.
1.2 KB
Binary file not shown.
4.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)