Install czkawka via download in dockerfile + fix uvicorn dependency
All checks were successful
gitea/file-organizer/pipeline/head This commit looks good
All checks were successful
gitea/file-organizer/pipeline/head This commit looks good
This commit is contained in:
parent
8ab7746a3f
commit
5e652151c9
6
.gitignore
vendored
6
.gitignore
vendored
@ -159,8 +159,4 @@ cython_debug/
|
||||
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||
#.idea/
|
||||
|
||||
|
||||
vendor/czkawka/*
|
||||
vendor/ffmpeg/*
|
||||
#.idea/
|
||||
@ -16,11 +16,10 @@ RUN pip install gunicorn
|
||||
# Copy the FastAPI project files into the container
|
||||
COPY . .
|
||||
|
||||
# Copy the czkawka binary into the container
|
||||
COPY vendor/czkawka /bin/
|
||||
|
||||
# Install ffmpeg with ffprobe
|
||||
RUN apt-get update && apt-get install -y ffmpeg
|
||||
# Install binary dependencies
|
||||
RUN apt-get update && apt-get install -y wget ffmpeg
|
||||
RUN wget -O /usr/local/bin/czkawka https://github.com/qarmin/czkawka/releases/download/8.0.0/linux_czkawka_cli
|
||||
RUN chmod +x /usr/local/bin/czkawka
|
||||
|
||||
# Expose the port the app runs on
|
||||
EXPOSE 8000
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
requests
|
||||
fastapi
|
||||
uvicorn
|
||||
pytest ; extra == 'dev'
|
||||
Loading…
Reference in New Issue
Block a user