Skip to content

Instantly share code, notes, and snippets.

@hltbra
Last active December 26, 2015 09:09
Show Gist options
  • Select an option

  • Save hltbra/7127145 to your computer and use it in GitHub Desktop.

Select an option

Save hltbra/7127145 to your computer and use it in GitHub Desktop.
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"]
@tianon
Copy link
Copy Markdown

tianon commented Oct 23, 2013

@hltbra For starters, FROM base should be FROM ubuntu - the base image is deprecated.

The next issue I see is that EXPOSES should be just EXPOSE.

After you get your container started up, use docker inspect container_id to figure out which port docker mapped to 8000.

@hltbra
Copy link
Copy Markdown
Author

hltbra commented Oct 24, 2013

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