-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fix for Dockerfile issues building on CentOs 7. See issue #1081 #1082
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RonanOD thanks for the PR! I think that the changes you made need some slight tweaking. Please see below for more details.
Dockerfile
Outdated
@@ -9,8 +9,9 @@ RUN apt-get update && apt-get install nodejs -y | |||
RUN mkdir -p /usr/src/app | |||
WORKDIR /usr/src/app | |||
COPY . /usr/src/app | |||
RUN npm install -g npm && npm install -g ember-cli@latest && npm install -g bower | |||
RUN npm install | |||
RUN npm install -g ember-cli |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the only fix needed here is to remove the npm install -g npm.
Dockerfile
Outdated
RUN npm install -g npm && npm install -g ember-cli@latest && npm install -g bower | ||
RUN npm install | ||
RUN npm install -g ember-cli | ||
RUN latest && npm install -g bower |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest
should have been on the previous line (eg npm install -g ember-cli@latest)
Dockerfile
Outdated
RUN npm install | ||
RUN npm install -g ember-cli | ||
RUN latest && npm install -g bower | ||
#RUN npm install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is needed to run HospitalRun
Thanks @jkleinsc. Made the improvements you suggested and pushed to this branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for the update @RonanOD!
Fixes #1081
Changes proposed in this pull request:
Hi, I solved my difficulties with building the HospitalRun docker image by making these slight changes to the Dockerfile. Hopefully they are acceptable, if not can you let me know what else I should do to get this working.
Thanks
@tangollama
cc @HospitalRun/core-maintainers