14 lines
299 B
Docker
14 lines
299 B
Docker
FROM python:3.7-slim-stretch
|
|
|
|
RUN apt-get -y update && apt-get -y install gcc
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Clean up APT when done.
|
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
COPY gpt2bot .
|
|
|
|
CMD ["python", "telegram_bot.py"] |