-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (28 loc) · 977 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (28 loc) · 977 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
# Use the official Python base image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Install system dependencies
#RUN apt-get update && apt-get install -y redis-server
RUN apt-get update && apt-get install -y ffmpeg libavcodec-extra
RUN apt-get update && apt-get install -y imagemagick
# Copy the requirements file
RUN echo "newimage"
COPY requirements.txt .
# Install the required dependencies
RUN pip install --no-cache-dir -r requirements.txt
#RUN apt-get update && apt-get install -y supervisor
#ENV PORT 5050
#ENV HOST 0.0.0.0
#EXPOSE 5050
# Copy the app code into the container
COPY . .
# Prepare all folders
RUN mkdir -p flask_app/src/temp_assets/Audios
RUN mkdir -p flask_app/src/temp_assets/Videos
RUN mkdir -p flask_app/src/temp_assets/Images
RUN mkdir -p flask_app/src/temp_assets/Texts
RUN mkdir -p flask_app/local_video_store
# Copy restriction policy to ImageMagick
COPY policy.xml /etc/ImageMagick-6/
CMD python worker.py