Last active
December 26, 2015 09:09
-
-
Save hltbra/7127145 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM base | |
| MAINTAINER Hugo Lopes Tavares <hugo@yipit.com> | |
| RUN apt-get update | |
| RUN apt-get install -y python3 expect-dev | |
| EXPOSES 8000 | |
| CMD ["unbuffer", "python3", "-m", "http.server"] |
Author
Thank you so much, @tianon! The problem was EXPOSES, what a damn typo.
By the way, shouldn't docker warn me about it?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@hltbra For starters,
FROM baseshould beFROM ubuntu- the base image is deprecated.The next issue I see is that
EXPOSESshould be justEXPOSE.After you get your container started up, use
docker inspect container_idto figure out which port docker mapped to 8000.