burtenshaw commited on
Commit
36cdead
·
1 Parent(s): 38df99c

make it runnable

Browse files
Files changed (2) hide show
  1. Dockerfile +32 -2
  2. README.md +1 -0
Dockerfile CHANGED
@@ -1,3 +1,33 @@
1
- FROM ubuntu:latest
2
 
3
- CMD bash
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
 
3
+ # Install Dev Mode required packages
4
+ RUN apt-get update && \
5
+ apt-get install -y \
6
+ bash \
7
+ git git-lfs \
8
+ wget curl procps \
9
+ htop vim nano && \
10
+ rm -rf /var/lib/apt/lists/*
11
+
12
+ # Set up user with uid 1000 (required for Dev Mode)
13
+ RUN useradd -m -u 1000 user
14
+ USER user
15
+
16
+ ENV HOME=/home/user \
17
+ PATH=/home/user/.local/bin:$PATH
18
+
19
+ # App code must be in /app for Dev Mode to detect changes
20
+ WORKDIR /app
21
+
22
+ # Copy application code
23
+ COPY --chown=user . /app
24
+
25
+ # Install Python dependencies (if you have any)
26
+ # RUN pip install --no-cache-dir -r requirements.txt
27
+
28
+ # Expose the default Spaces port
29
+ EXPOSE 7860
30
+
31
+ # CMD is required for Dev Mode - start a simple server placeholder
32
+ # You can modify this via Dev Mode shell
33
+ CMD ["python", "-m", "http.server", "7860"]
README.md CHANGED
@@ -4,6 +4,7 @@ emoji: 🌍
4
  colorFrom: gray
5
  colorTo: blue
6
  sdk: docker
 
7
  pinned: false
8
  ---
9
 
 
4
  colorFrom: gray
5
  colorTo: blue
6
  sdk: docker
7
+ app_port: 7860
8
  pinned: false
9
  ---
10