Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #401 from HewlettPackard/Upgrade_in_DockerFile
Added packages to clean in DockerFile
- Loading branch information
Showing
2 changed files
with
25 additions
and
19 deletions.
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 |
---|---|---|
@@ -1,13 +1,21 @@ | ||
FROM ubuntu:18.04 | ||
MAINTAINER "Chebrolu Harika <bala-sai-harika.chebrolu@hpe.com>" | ||
WORKDIR /root | ||
RUN apt-get update && \ | ||
RUN apt-get update -y && \ | ||
apt-get install -y --no-install-recommends --no-upgrade && \ | ||
apt-get install -y curl vim wget openssl bash ca-certificates git && \ | ||
apt-get install -y ruby-dev && \ | ||
apt-get install -y gcc make | ||
RUN gem install oneview | ||
ADD . oneview/ | ||
WORKDIR /root/oneview/oneview-sdk-ruby | ||
WORKDIR /root/oneview | ||
RUN gem install bundler | ||
RUN bundle update | ||
|
||
# Clean and remove not required packages | ||
RUN DEBIAN_FRONTEND=noninteractive \ | ||
apt-get autoremove -y && \ | ||
apt-get clean -y && \ | ||
rm -rf /var/cache/apt/archives/* /var/cache/apt/lists/* /tmp/* /root/cache/. | ||
|
||
CMD ["/bin/bash"] |
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