mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
Update dockerfile for better caching
This commit is contained in:
parent
0a03be0fae
commit
5a8c6f9cc3
10
dockerfile
10
dockerfile
@ -1,11 +1,5 @@
|
|||||||
FROM python:3.11-slim
|
FROM python:3.11-slim
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
ENV TEMP /tmp
|
|
||||||
RUN mkdir -p $TEMP
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
build-essential \
|
build-essential \
|
||||||
@ -15,6 +9,10 @@ RUN apt-get update && apt-get install -y \
|
|||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxslt1-dev
|
libxslt1-dev
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY requirements.txt requirements.txt
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
CMD ["python", "test_run.py"]
|
CMD ["python", "test_run.py"]
|
Loading…
x
Reference in New Issue
Block a user