forked from coddrago/Heroku
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (19 loc) · 651 Bytes
/
Dockerfile
File metadata and controls
31 lines (19 loc) · 651 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
FROM python:3.10-slim
ENV DOCKER=true \
GIT_PYTHON_REFRESH=quiet \
PIP_NO_CACHE_DIR=1
RUN apt update && \
apt install -y --no-install-recommends \
curl libcairo2 git ffmpeg \
libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavdevice-dev \
gcc python3-dev
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs
RUN rm -rf /var/lib/apt/lists /var/cache/apt/archives /tmp/*
COPY . /Legacy
WORKDIR /Legacy
RUN git pull --rebase
RUN pip install --no-warn-script-location --no-cache-dir -r requirements.txt
EXPOSE 8080
RUN mkdir /data
CMD ["python3", "-m", "legacy"]