Spaces:
Sleeping
Sleeping
bugfix perdana
Browse files- Dockerfile +12 -4
Dockerfile
CHANGED
|
@@ -1,11 +1,19 @@
|
|
| 1 |
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
| 2 |
# you will also find guides on how best to write your Dockerfile
|
| 3 |
|
| 4 |
-
FROM python:3.
|
| 5 |
|
| 6 |
-
|
| 7 |
-
USER
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
WORKDIR /app
|
| 11 |
|
|
|
|
| 1 |
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
| 2 |
# you will also find guides on how best to write your Dockerfile
|
| 3 |
|
| 4 |
+
FROM python:3.10
|
| 5 |
|
| 6 |
+
# Make sure subsequent RUNs execute as root
|
| 7 |
+
USER root
|
| 8 |
+
SHELL ["/bin/bash", "-lc"]
|
| 9 |
+
|
| 10 |
+
# Fix/clean apt state, then install packages
|
| 11 |
+
RUN rm -rf /var/lib/apt/lists/* \
|
| 12 |
+
&& mkdir -p /var/lib/apt/lists/partial \
|
| 13 |
+
&& apt-get update \
|
| 14 |
+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
| 15 |
+
git git-lfs ca-certificates \
|
| 16 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 17 |
|
| 18 |
WORKDIR /app
|
| 19 |
|