|
|
FROM python:3.9-slim |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
|
RUN mkdir -p /app/static/audio |
|
|
RUN mkdir -p /app/templates |
|
|
|
|
|
|
|
|
RUN chmod -R 777 /app/static |
|
|
|
|
|
|
|
|
RUN apt-get update && \ |
|
|
apt-get install -y --no-install-recommends \ |
|
|
espeak \ |
|
|
libespeak1 \ |
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
|
COPY requirements.txt . |
|
|
COPY app.py . |
|
|
COPY final_price_data.csv . |
|
|
COPY static /app/static/ |
|
|
COPY templates /app/templates/ |
|
|
|
|
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt |
|
|
|
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
|
|
|
ENV FLASK_APP=app.py |
|
|
|
|
|
|
|
|
CMD ["python", "-m", "flask", "run", "--host=0.0.0.0", "--port=7860"]FROM python:3.9-slim |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
|
RUN mkdir -p /app/static/audio |
|
|
RUN mkdir -p /app/templates |
|
|
|
|
|
|
|
|
RUN chmod -R 777 /app/static |
|
|
|
|
|
|
|
|
RUN apt-get update && \ |
|
|
apt-get install -y --no-install-recommends \ |
|
|
espeak \ |
|
|
libespeak1 \ |
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
|
COPY requirements.txt . |
|
|
COPY app.py . |
|
|
COPY final_price_data.csv . |
|
|
COPY static /app/static/ |
|
|
COPY templates /app/templates/ |
|
|
|
|
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt |
|
|
|
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
|
|
|
ENV FLASK_APP=app.py |
|
|
|
|
|
|
|
|
CMD ["python", "-m", "flask", "run", "--host=0.0.0.0", "--port=7860"] |