-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
44 lines (36 loc) · 937 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
44 lines (36 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Development Dockerfile for SaveVideoBot
FROM python:3.11-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
gcc \
g++ \
libpq-dev \
libffi-dev \
libssl-dev \
ffmpeg \
curl \
git \
vim \
&& rm -rf /var/lib/apt/lists/*
# Create application directory
WORKDIR /app
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && \
pip install -r requirements.txt
# Copy application code
COPY app/ ./app/
COPY alembic/ ./alembic/
COPY alembic.ini .
# Create necessary directories
RUN mkdir -p /tmp/savevideobot
# Expose port
EXPOSE 8000
# Default command for development
CMD ["python", "-m", "app.main"]