Spaces:
Sleeping
Sleeping
Upload Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -9,9 +9,13 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 9 |
# Copy source
|
| 10 |
COPY . .
|
| 11 |
|
| 12 |
-
# Gi岷 n茅n IMAGE_CROP.zip trong folder images v脿 x贸a file zip
|
| 13 |
RUN apt-get update && apt-get install -y unzip \
|
| 14 |
-
&& if [ -f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
&& apt-get remove -y unzip \
|
| 16 |
&& apt-get autoremove -y \
|
| 17 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
| 9 |
# Copy source
|
| 10 |
COPY . .
|
| 11 |
|
|
|
|
| 12 |
RUN apt-get update && apt-get install -y unzip \
|
| 13 |
+
&& if [ -f images/IMAGE_CROP.zip ]; then \
|
| 14 |
+
unzip images/IMAGE_CROP.zip -d images && rm images/IMAGE_CROP.zip; \
|
| 15 |
+
fi \
|
| 16 |
+
&& if [ -f images/UPLOAD_CROP-17_12.zip ]; then \
|
| 17 |
+
unzip images/UPLOAD_CROP-17_12.zip -d images && rm images/UPLOAD_CROP-17_12.zip; \
|
| 18 |
+
fi \
|
| 19 |
&& apt-get remove -y unzip \
|
| 20 |
&& apt-get autoremove -y \
|
| 21 |
&& rm -rf /var/lib/apt/lists/*
|