forked from mohitbooraget/Instagram-Downloader
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
30 lines (23 loc) · 823 Bytes
/
Dockerfile
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
# Use the base image with Python 3.12 if available
FROM python:3.12-slim
# Set environment variables
ENV VIRTUAL_ENV=/opt/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Install build dependencies and ffmpeg
RUN apt-get update && apt-get install -y \
gcc \
libc-dev \
libffi-dev \
musl-dev \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Create a virtual environment
RUN python3.12 -m venv $VIRTUAL_ENV
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . .
# Install Python dependencies listed in the Installer file
RUN $VIRTUAL_ENV/bin/pip install --no-cache-dir --upgrade --requirement Installer
# Specify the command to run your application
CMD ["$VIRTUAL_ENV/bin/python", "modules/main.py"]