reygml commited on
Commit
71fd7ae
·
1 Parent(s): 8b95053

bugfix perdana

Browse files
Files changed (1) hide show
  1. 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.9
5
 
6
- RUN useradd -m -u 1000 user
7
- USER user
8
- ENV PATH="/home/user/.local/bin:$PATH"
 
 
 
 
 
 
 
 
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