Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -6,14 +6,15 @@ COPY requirements.txt .
|
|
6 |
RUN pip install --prefix=/install -r requirements.txt
|
7 |
|
8 |
COPY app.py telegram_preview.py ./
|
9 |
-
COPY templates/ templates/
|
|
|
10 |
|
11 |
# compile both files
|
12 |
RUN python -m compileall -b -f app.py telegram_preview.py
|
13 |
|
14 |
# bundle everything needed
|
15 |
RUN tar -czf /build/app.tgz \
|
16 |
-
app.pyc telegram_preview.pyc templates/
|
17 |
|
18 |
################ runtime ################
|
19 |
FROM python:3.9-slim
|
|
|
6 |
RUN pip install --prefix=/install -r requirements.txt
|
7 |
|
8 |
COPY app.py telegram_preview.py ./
|
9 |
+
COPY templates/ templates/
|
10 |
+
COPY static/ static/
|
11 |
|
12 |
# compile both files
|
13 |
RUN python -m compileall -b -f app.py telegram_preview.py
|
14 |
|
15 |
# bundle everything needed
|
16 |
RUN tar -czf /build/app.tgz \
|
17 |
+
app.pyc telegram_preview.pyc templates/ static/
|
18 |
|
19 |
################ runtime ################
|
20 |
FROM python:3.9-slim
|