Skip to content

Instantly share code, notes, and snippets.

@hassaku63
Last active August 31, 2019 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hassaku63/782fc69da6afb16114be18b2e6e883a2 to your computer and use it in GitHub Desktop.
Save hassaku63/782fc69da6afb16114be18b2e6e883a2 to your computer and use it in GitHub Desktop.
FROM python:3.5.2
RUN mkdir -p /usr/src/app
ADD isucon6-webapp/python/requirements.txt /usr/src/app/
ADD isucon6-webapp /usr/src/app/
RUN pip install -r /usr/src/app/requirements.txt
RUN pip install gunicorn
WORKDIR /usr/src/app/python/
EXPOSE 5000
CMD ["gunicorn", "app:app", "-b", "0.0.0.0:5000"]
@hassaku63
Copy link
Author

docker run -d -p 80:5000 --name isucon-web (ビルドしたイメージの名前)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment