Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scos
scos.projects
2PSnake
Commits
dc559f13
Commit
dc559f13
authored
Nov 07, 2020
by
Alexander Palmisano
Browse files
added pygame GUI docker
parent
7cfd9031
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
dc559f13
...
...
@@ -48,4 +48,18 @@ RUN apt-get -y install git python3-dev python3-setuptools python3-numpy python3-
xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic fontconfig fonts-freefont-ttf libfreetype6-dev
COPY
pip_req.txt /temp/
RUN
python3
-m
pip
install
-r
/temp/pip_req.txt
\ No newline at end of file
RUN
python3
-m
pip
install
-r
/temp/pip_req.txt
#RUN pygame with GUI in docker
# comment out main.py:loadingscreen line 967 (generate_graph(snake_length, map, map_filename))
# docker run -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY --name snake IMAGE_NAME:TAG
# COPY . /2psnake
# RUN useradd -m -U -s /bin/bash pygame
# USER pygame
# WORKDIR /2psnake/Game
# ENV SHELL /bin/bash
# ENTRYPOINT ["python3", "main.py"]
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment