Skip to content

Commit

Permalink
Dockerfile for creating container image (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
patilsuraj767 committed Jan 11, 2021
1 parent a4b8e53 commit 8304b82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Dockerfile
@@ -0,0 +1,8 @@
FROM registry.redhat.io/rhscl/python-38-rhel7
COPY Pipfile Pipfile.lock manage.py run.py ${APP_ROOT}/src/
COPY ros ${APP_ROOT}/src/ros/
COPY migrations ${APP_ROOT}/src/migrations/
RUN pip install --upgrade pip && \
pip install pipenv && \
pipenv install --system --deploy --ignore-pipfile
CMD bash -c 'python manage.py db upgrade && python run.py'
2 changes: 1 addition & 1 deletion run.py
@@ -1,4 +1,4 @@
from ros.app import app

if __name__ == "__main__":
app.run()
app.run(host='0.0.0.0', port=8080)

0 comments on commit 8304b82

Please sign in to comment.