Skip to content

Commit

Permalink
onrender
Browse files Browse the repository at this point in the history
  • Loading branch information
yeaktas committed Apr 20, 2024
1 parent 2d31f3a commit f745dab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ COPY indianpong /indianpong

RUN chmod +x /indianpong/start.sh

EXPOSE 8443
EXPOSE 8000

CMD [ "sh", "/indianpong/start.sh" ]
ENTRYPOINT ["sh", "/indianpong/start.sh"]

CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]


2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ services:
env_file:
- .env
ports:
- 8443:8443
- 8000:8000
2 changes: 1 addition & 1 deletion indianpong/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ python3 manage.py migrate
python3 manage.py initdata
#python3 manage.py populate 10
#python3 manage.py collectstatic --no-input
python3 manage.py runserver 8443
#python3 manage.py runserver 8443
exec "$@"

0 comments on commit f745dab

Please sign in to comment.