-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile for creating container image (#7)
- Loading branch information
1 parent
a4b8e53
commit 8304b82
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from ros.app import app | ||
|
||
if __name__ == "__main__": | ||
app.run() | ||
app.run(host='0.0.0.0', port=8080) |