Yahudaxd commited on
Commit
bdc3e1d
·
verified ·
1 Parent(s): d64ff36

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -26
Dockerfile CHANGED
@@ -1,32 +1,18 @@
1
- # Base image (Ubuntu + Node + Python, sen ihtiyacına göre seçebilirsin)
2
- FROM ubuntu:22.04
3
 
4
- USER root
5
-
6
- # Ortam değişkenleri
7
- ENV DEBIAN_FRONTEND=noninteractive
8
- ENV TZ=Europe/Istanbul
9
 
10
- # Gerekli paketler
11
- RUN apt-get update && apt-get install -y \
12
- curl \
13
- wget \
14
- git \
15
- python3 \
16
- python3-pip \
17
- nodejs \
18
- npm \
19
- unzip \
20
- && rm -rf /var/lib/apt/lists/*
21
 
22
- # code-server indir (VS Code server)
23
- RUN curl -fsSL https://code-server.dev/install.sh | sh
24
 
25
- # Hugging Face Spaces için app portunu aç (genelde 7860 ya da 7861 kullanılıyor)
26
  EXPOSE 7860
27
 
28
- # Çalışma dizini
29
- WORKDIR /workspace
30
-
31
- # code-server başlat
32
- CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "/workspace"]
 
1
+ # Resmi code-server image
2
+ FROM codercom/code-server:latest
3
 
4
+ # Workspace olarak HF yazılabilir alanını kullan
5
+ WORKDIR /workspace
 
 
 
6
 
7
+ # HOME ve CONFIG dizinini workspace'e yönlendir
8
+ ENV HOME=/workspace
9
+ ENV CONFIG_DIR=/workspace/.config
 
 
 
 
 
 
 
 
10
 
11
+ # Gereksiz telemetry kapat
12
+ ENV DISABLE_TELEMETRY=true
13
 
14
+ # Hugging Face Spaces default port
15
  EXPOSE 7860
16
 
17
+ # Public erişim (şifre yok)
18
+ CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "/workspace"]