Dmitry Beresnev
fix docker file and tg bot
b6e22da
raw
history blame
487 Bytes
FROM python:3.10-slim
# Set environment variables
ENV HOME=/app
# Create app directory and set as working dir
WORKDIR $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 -r requirements.txt
EXPOSE 8443
HEALTHCHECK CMD curl --fail http://localhost:8443/_stcore/health
ENTRYPOINT ["python3", "src/telegram_bot.py"]