add files
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Устанавливаем зависимости для requests (SSL и т.п.)
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Рабочая директория
|
||||
WORKDIR /app
|
||||
|
||||
# Копируем зависимости
|
||||
COPY requirements.txt .
|
||||
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Копируем сам скрипт
|
||||
COPY tg_to_vk.py .
|
||||
|
||||
# Файл для хранения последнего update_id
|
||||
RUN touch last_tg_id.txt
|
||||
|
||||
# Запускаем
|
||||
CMD ["python", "tg_to_vk.py"]
|
||||
Reference in New Issue
Block a user