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