-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1Rayan
committed
Oct 6, 2024
1 parent
066e08f
commit eee8608
Showing
1 changed file
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
FROM python:3.9-slim | ||
FROM python:3.12-slim | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends build-essential libpq-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /app | ||
|
||
COPY analytics/requirements.txt . | ||
COPY /analytics/ /app | ||
|
||
RUN pip install --upgrade pip setuptools wheel | ||
RUN pip install -r requirements.txt | ||
|
||
COPY analytics/ . | ||
RUN pip install --no-cache-dir -r /app/requirements.txt | ||
|
||
EXPOSE 5153 | ||
|
||
CMD ["python", "app.py"] | ||
CMD ["python", "app/app.py"] |