triflix commited on
Commit
01f5aaa
·
verified ·
1 Parent(s): fb0b414

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -1,16 +1,13 @@
1
- # Use a lightweight base image
2
  FROM ubuntu:22.04
3
 
4
- # Install Tinyproxy
5
  RUN apt-get update && \
6
  apt-get install -y tinyproxy && \
7
- apt-get clean
 
8
 
9
- # Copy our custom configuration file
10
  COPY tinyproxy.conf /etc/tinyproxy/tinyproxy.conf
11
 
12
- # Expose the port Tinyproxy will listen on INSIDE the container
13
  EXPOSE 8888
14
 
15
- # Start Tinyproxy in the foreground (so the Docker container stays alive)
16
  CMD ["tinyproxy", "-d"]
 
 
1
  FROM ubuntu:22.04
2
 
 
3
  RUN apt-get update && \
4
  apt-get install -y tinyproxy && \
5
+ apt-get clean && \
6
+ rm -rf /var/lib/apt/lists/*
7
 
 
8
  COPY tinyproxy.conf /etc/tinyproxy/tinyproxy.conf
9
 
10
+ # Expose the port (Hugging Face will map it to 7860)
11
  EXPOSE 8888
12
 
 
13
  CMD ["tinyproxy", "-d"]