Tejas Badadare 9 mesi fa
parent
commit
13c5d43655

+ 6 - 3
apps/contract-deployer/Dockerfile

@@ -20,14 +20,17 @@ RUN pnpm install
 FROM python:3.11-slim-bookworm
 COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
 
-# Install Python and other system dependencies
+# Install git
 RUN apt-get update && apt-get install -y git
 
 # Expose the port Streamlit runs on
 EXPOSE 8501
 
+# Expect source code to be mounted to /app
+COPY . /app
 WORKDIR /app
 
-# Command to run the application
+# Install deps
+RUN pwd && ls -la && uv sync
+
 CMD ["uv", "run", "server.py"]
-# Infinite loop to keep container running

+ 2 - 2
apps/contract-deployer/docker-compose.yaml

@@ -5,8 +5,8 @@ services:
       dockerfile: ./Dockerfile
     ports:
       - "8501:8501"
-    volumes:
-      - ./:/app # Mount the entire monorepo. TODO: pull from GH
+    # volumes:
+    #   - ./:/app # Mount the entire monorepo. TODO: pull from GH
     environment:
       - STREAMLIT_SERVER_PORT=8501
       - STREAMLIT_SERVER_ADDRESS=0.0.0.0