Create nixpacks.toml (#116)

This commit is contained in:
Abhi
2025-02-07 10:31:46 +05:30
committed by GitHub
parent 990279db9c
commit 3cd2e918e9
3 changed files with 13 additions and 1 deletions

View File

@@ -4,5 +4,7 @@ COPY . /app
RUN apt-get -qq update && apt-get -qq install -y git wget ffmpeg mediainfo \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN python -m venv --copies /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN pip install --no-cache-dir -r requirements.txt
CMD ["bash", "cloud.sh"]
CMD ["bash", "cloud.sh"]

View File

@@ -4,5 +4,7 @@ COPY . /app
RUN apt-get -qq update && apt-get -qq install -y git wget ffmpeg mediainfo \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN python -m venv --copies /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN pip install --no-cache-dir -r requirements.txt
CMD ["python", "main.py"]

8
nixpacks.toml Normal file
View File

@@ -0,0 +1,8 @@
[phases.setup]
nixPkgs = ['...', 'git', 'wget', 'ffmpeg', 'mediainfo']
[phases.install]
cmds = ["python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install --no-cache-dir -r requirements.txt"]
[start]
cmd = "python main.py"