I have a Django app that uses Docker and Docker Compose locally. I am trying to deploy to Digital Ocean App Platform.
When I setup the app the app spec automatically detects my Dockerfile. However, I get an error during deployment because the Dockerfile includes references to my local entrypoint.sh and start.sh files.
What would be the simplest way to resolve this without modifying the local Docker setup?
The deploy error:
Taking snapshot of full filesystem... bears-django | 14:43:10 INFO cmd: /bin/sh bears-django | 14:43:10 INFO args: [-c pip install -U pip] bears-django | 14:43:10 INFO Running: [/bin/sh -c pip install -U pip] bears-django | 14:43:10 /bin/sh: invalid option -- c bears-django | 14:43:10 Usage: /bin/sh [option(s)] [file(s)]
Relevant part of my Dockerfile:
COPY ./entrypoint.sh /entrypoint.sh COPY ./start.sh /start.sh RUN chmod +x /entrypoint.sh \ && chmod +x /start.sh ENTRYPOINT ["/entrypoint.sh"] ### # Final Application Image ### FROM py-base as py-app RUN rm -rf /root/.cache CMD ["/start.sh"]
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!