Create Dockerfile
Browse files- Dockerfile +19 -0
Dockerfile
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
RUN apt-get update && \
|
| 6 |
+
apt-get install -y git && \
|
| 7 |
+
apt-get clean && \
|
| 8 |
+
rm -rf /var/lib/apt/lists/*
|
| 9 |
+
|
| 10 |
+
# Clone into separate subdirectories
|
| 11 |
+
RUN git clone --depth 1 --single-branch https://github.com/trejduu32-code/playables.git ./playables && \
|
| 12 |
+
git clone --depth 1 --single-branch https://github.com/bubbls/UGS-Assets.git ./ugs-assets
|
| 13 |
+
|
| 14 |
+
# Create a simple index page to navigate between repos
|
| 15 |
+
RUN echo '<html><body><h1>Repositories</h1><ul><li><a href="/playables">Playables</a></li><li><a href="/ugs-assets">UGS Assets</a></li></ul></body></html>' > index.html
|
| 16 |
+
|
| 17 |
+
EXPOSE 7860
|
| 18 |
+
|
| 19 |
+
CMD ["python", "-m", "http.server", "7860"]
|