jnrboomer.blogg.se

How to use ffmpeg on heroku
How to use ffmpeg on heroku












# Set up Chromedriver Environment variables # We need wget to set up the PPA and xvfb and gnupg to have a virtual screen and unzip to install the ChromedriverĪpt-get install -y wget xvfb unzip & apt-get install gnupg -y & \Įcho "deb stable main" > /etc/apt//google.list & \Īpt-get update & apt-get install -y google-chrome-stable & \ RUN apt-get update & apt-get install -no-install-recommends -y python3.9 python3-venv & \Īpt-get install -y ffmpeg & apt-get install libopus0 & \ RUN pip3 install -no-cache-dir -r requirements.txt # using final folder name to avoid path issues with packages # create and activate virtual environment RUN apt-get update & apt-get install -no-install-recommends -y python3.9 python3.9-dev python3.9-venv python3-pip python3-wheel build-essential & \Īpt-get clean & rm -rf /var/lib/apt/lists/* I used this simple starter tutorial: Docker Tutorial | Learn Docker in 40 minutes - YouTube

how to use ffmpeg on heroku how to use ffmpeg on heroku

Ok after 2 hours learning everything about dockerfiles and i finally combined one, i used optimized dockerfile from here and then i installed things my bot needed, i will share mine here if someone has same preferences: Also if one of my bots is discord only and second one is web-scrapping only, should i have worker tag for first bot and second scraper bot web tag in procfile? Like this?Īlso if u know some tips migrating from heroku to fly.io can you please tell me?.I installed flyctl, and it made file fly.toml, after doing research I added build packs I used on heroku:īuildpacks = Įrror failed to fetch an image or build from source: downloading buildpack: extracting from : inspecting buildpack blob: failed to get next tar entry: archive/tar: invalid tar header.So i had discord bot and web-scraper bot that were working on Heroku for 2 years, but heroku decided to remove free dyno time, and now I have no option but to move to fly.io, but I ran into some problems:














How to use ffmpeg on heroku