Fixed mario-kart-8 Dockerfile patch

This commit is contained in:
Bryan Mainardi 2025-04-25 03:34:58 +02:00
parent 2588cca0b4
commit ee9624863b

View File

@ -3,7 +3,7 @@ new file mode 100644
index 0000000..9fb5b2d
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,20 @@
@@ -0,0 +1,22 @@
+# Use the official Python image as the base
+FROM python:3.9-slim
+
@ -21,12 +21,6 @@ index 0000000..9fb5b2d
+# Copy all project files into the container
+COPY . .
+
+# Install Git (required for submodules)
+#RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
+
+# Ensure all submodules (including nested ones) are initialized and updated
+#RUN git submodule update --init --recursive
+
+# Generate gRPC Python files before running the application
+RUN python -m grpc_tools.protoc --proto_path=grpc --python_out=. --grpc_python_out=. grpc/amkj_service.proto
+