M Dockerfile => Dockerfile +5 -5
@@ 1,14 1,14 @@
# syntax=docker/dockerfile:1
-FROM tensorflow/tensorflow:latest-gpu-py3
+FROM tensorflow/tensorflow:2.11.0-gpu
WORKDIR /chizuru
SHELL ["bash"]
COPY . .
-RUN lscpi | grep -i nvidia
-RUN apt-get update && apt-get install python3.7
+RUN apt update && apt install -y software-properties-common && add-apt-repository -y ppa:deadsnakes/ppa && apt-get update && apt install -y python3.7
RUN python3.7 -m venv ./venv
RUN ./venv/bin/activate
-RUN pip -r requirements.txt
+RUN pip install --upgrade pip
+RUN pip install -r requirements.txt
-CMD ["python"]>
\ No newline at end of file
+CMD python3.7 chizuru.py<
\ No newline at end of file
M README.md => README.md +1 -1
@@ 14,7 14,7 @@ docker run
```
After that, it should be smooth sailing.
-If you want to run this locally, you need to use Python 3.7. Rogue-gym does not install in higher Python versions, I think. It didn't work when I tried to install on Python 3.11.
+If you want to run this locally, you need to use Python 3.7. Rogue-gym does not install in higher Python versions, since its an old project.
## Files
The model is located in `chizuru.py`. The training file and logic is written in `train.py`, and the code for previewing how the AI plays is located in `preview.py`. Seeing is believing, after all.
M requirements.txt => requirements.txt +2 -1
@@ 1,4 1,5 @@
tensorflow~=2.11.0
matplotlib~=3.5.3
numpy~=1.21.6
-rogue-gym~=0.0.2>
\ No newline at end of file
+rogue-gym~=0.0.2
+pydot~=1.4.2<
\ No newline at end of file