Skip to content

Commit 5787e97

Browse files
authored
Merge pull request #44 from skytreader/python3
Update Docker image to use Python 3.
2 parents bef333e + 46654f4 commit 5787e97

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sudo: required
55
dist: xenial
66
before_install:
77
- sudo apt-get install -y xvfb
8-
- sudo apt-get install -y mercurial libfreetype6-dev
8+
- sudo apt-get install -y libfreetype6-dev
99
- sudo apt-get build-dep -y python-pygame
1010
- pip install pygame
1111
install:

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM ubuntu:16.04
1+
FROM python:3.7-stretch
22
LABEL maintainer "[email protected]"
33

4-
RUN apt-get update --fix-missing
5-
RUN apt-get install -y python-pygame python-pip
4+
RUN apt-get update && \
5+
pip install pygame
66

77
COPY ./requirements.txt /requirements.txt
88
RUN pip install -r /requirements.txt

duckrunner

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docker run --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v "$(pwd)":/app -w /app skytreader/pygame-objects sh -c "python -m $1"
1+
docker run --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v "$(pwd)":/app -w /app skytreader/pygame-objects:latest sh -c "python -m $1"

0 commit comments

Comments
 (0)