Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions managed_vms/endpoints/Dockerfile.container-engine
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM debian:jessie

RUN apt-get update && \
apt-get install -y python2.7 python-pip python-gevent && \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gevent shouldn't be needed.

apt-get clean && \
rm /var/lib/apt/lists/*_*

COPY requirements.txt /requirements.txt
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just ADD . /app ?

COPY swagger.yaml /swagger.yaml
COPY main.py /main.py

RUN pip install -r requirements.txt
ENTRYPOINT ["gunicorn", "-b", ":8081", "main:app"]