Answer the question
In order to leave comments, you need to log in
How to deploy a container on heroku?
I'm trying to use the official tutorial to deploy a container on heroku in a python application. But I get a 500 error in response. Please help me understand what I am doing wrong.
After I log in to heroku and create the application, I try to build the image and send it to the heroku registry like so:
[email protected] ~/.MINT17/code/python/alpinehelloworld $ heroku container:push web
=== Building web (/home/md/.MINT17/code/python/alpinehelloworld/Dockerfile)
Sending build context to Docker daemon 9.216 kB
Step 1 : FROM alpine:latest
---> 3080ff66650c
Step 2 : RUN apk add --no-cache --update python3 py3-pip bash
---> Using cache
---> e67647f532f4
Step 3 : ADD ./webapp/requirements.txt /tmp/requirements.txt
---> Using cache
---> 280b9fa100ca
Step 4 : RUN pip3 install --no-cache-dir -q -r /tmp/requirements.txt
---> Using cache
---> acbb31bb0e60
Step 5 : ADD ./webapp /opt/webapp/
---> Using cache
---> ea075cc9a5a8
Step 6 : WORKDIR /opt/webapp
---> Using cache
---> 6bef2d2233d4
Step 7 : RUN adduser -D myuser
---> Using cache
---> e2fd64e621d4
Step 8 : USER myuser
---> Using cache
---> 436f92d1a459
Step 9 : CMD gunicorn --bind 0.0.0.0:$PORT wsgi
---> Using cache
---> f4890fe49e14
Successfully built f4890fe49e14
=== Pushing web (/home/md/.MINT17/code/python/alpinehelloworld/Dockerfile)
The push refers to a repository [registry.heroku.com/peaceful-spire-48791/web] (len: 1)
f4890fe49e14: Image already exists
e2fd64e621d4: Image already exists
ea075cc9a5a8: Image already exists
acbb31bb0e60: Image already exists
280b9fa100ca: Image already exists
e67647f532f4: Image already exists
3c5b15d3e50c: Pushed
latest: digest: sha256:60d8e7b3461ad98b443581a822afe544efbf43c557656ac77d86a46616a1eb77 size: 14616
Received unexpected HTTP status: 500 Internal Server Error
▸ Error: docker push exited with Error: 1
heroku container:release web --app peaceful-spire-48791
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question