Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|