Init repo
This commit is contained in:
36
dockerfile
Normal file
36
dockerfile
Normal file
@@ -0,0 +1,36 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
COPY requirements.txt Montserrat.ttf ./
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -qq -y \
|
||||
build-essential \
|
||||
xvfb \
|
||||
xdg-utils \
|
||||
wget \
|
||||
unzip \
|
||||
ffmpeg \
|
||||
libpq-dev \
|
||||
vim \
|
||||
libmagick++-dev \
|
||||
imagemagick \
|
||||
fonts-liberation \
|
||||
sox \
|
||||
bc \
|
||||
gsfonts && \
|
||||
fc-cache -fv && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
VOLUME ["/app"]
|
||||
|
||||
CMD ["python", "-u", "main.py"]
|
||||
Reference in New Issue
Block a user