Subham9126 commited on
Commit
d521e0c
·
verified ·
1 Parent(s): ffbc00f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -13
Dockerfile CHANGED
@@ -1,18 +1,18 @@
1
- FROM codercom/code-server:latest
2
 
 
3
  USER root
 
4
 
5
- # Install basic dev tools (curl, git, python, etc.)
6
- RUN apt-get update && apt-get install -y \
7
- curl \
8
- git \
9
- python3 \
10
- python3-pip \
11
- && rm -rf /var/lib/apt/lists/*
12
 
13
- # Set the working directory to the standard HF storage path
14
- WORKDIR /home/coder/project
 
15
 
16
- # Configure code-server to run on port 7860 and disable telemetry
17
- # Use --auth password to protect your IDE
18
- ENTRYPOINT ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "password", "--disable-telemetry", "."]
 
 
1
+ FROM localstack/localstack:latest
2
 
3
+ # Install Nginx to handle the port routing
4
  USER root
5
+ RUN apt-get update && apt-get install -y nginx supervisord
6
 
7
+ # Copy your Nginx config and Supervisor config
8
+ COPY nginx.conf /etc/nginx/sites-available/default
9
+ COPY supervisord.conf /etc/supervisord.conf
 
 
 
 
10
 
11
+ # Set LocalStack to use persistence (crucial for HF)
12
+ ENV PERSISTENCE=1
13
+ ENV LOCALSTACK_HOST=0.0.0.0
14
 
15
+ # HF Spaces requires 7860
16
+ EXPOSE 7860
17
+
18
+ CMD ["/usr/bin/supervisord"]