Skip to content

Commit

Permalink
update docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
1Rayan committed Oct 6, 2024
1 parent 066e08f commit eee8608
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
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"]

0 comments on commit eee8608

Please sign in to comment.