Dmitry Beresnev
fix dockerfile
f74cab2
raw
history blame
588 Bytes
FROM python:3.10-slim
# Set environment variables
ENV HOME=/app
# Create app directory and set as working dir
WORKDIR $HOME
ENV PYTHONPATH=$HOME
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
COPY src/ ./src/
RUN pip3 install --no-cache-dir -r requirements.txt
ENV http_proxy ""
ENV https_proxy ""
EXPOSE 7860
HEALTHCHECK CMD curl --fail http://localhost:7860/
ENTRYPOINT ["uvicorn", "src.telegram_bot:app", "--host", "0.0.0.0", "--port", "7860"]