Yahudaxd commited on
Commit
22ab42a
·
verified ·
1 Parent(s): 761ce54

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +30 -0
dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image (Ubuntu + Node + Python, sen ihtiyacına göre seçebilirsin)
2
+ FROM ubuntu:22.04
3
+
4
+ # Ortam değişkenleri
5
+ ENV DEBIAN_FRONTEND=noninteractive
6
+ ENV TZ=Europe/Istanbul
7
+
8
+ # Gerekli paketler
9
+ RUN apt-get update && apt-get install -y \
10
+ curl \
11
+ wget \
12
+ git \
13
+ python3 \
14
+ python3-pip \
15
+ nodejs \
16
+ npm \
17
+ unzip \
18
+ && rm -rf /var/lib/apt/lists/*
19
+
20
+ # code-server indir (VS Code server)
21
+ RUN curl -fsSL https://code-server.dev/install.sh | sh
22
+
23
+ # Hugging Face Spaces için app portunu aç (genelde 7860 ya da 7861 kullanılıyor)
24
+ EXPOSE 7860
25
+
26
+ # Çalışma dizini
27
+ WORKDIR /workspace
28
+
29
+ # code-server başlat
30
+ CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none", "/workspace"]