-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Juliano Petronetto
committed
Jan 21, 2018
1 parent
a642730
commit 63abd76
Showing
1 changed file
with
3 additions
and
5 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 |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
FROM petronetto/py3-builder | ||
FROM petronetto/alpine-machine-learning-base | ||
|
||
LABEL maintainer="Juliano Petronetto <[email protected]>" \ | ||
name="PyTorch Alpine" \ | ||
|
@@ -38,16 +38,14 @@ LABEL maintainer="Juliano Petronetto <[email protected]>" \ | |
vendor="Petronetto DevTech" \ | ||
version="1.0" | ||
|
||
RUN apk --update upgrade \ | ||
## Install PyTorch | ||
RUN echo "|--> Updating" \ | ||
&& apk update && apk upgrade \ | ||
&& echo "|--> Install PyTorch" \ | ||
&& git clone --recursive https://github.com/pytorch/pytorch \ | ||
&& cd pytorch && python setup.py install \ | ||
## Install Torch Vision | ||
&& echo "|--> Install Torch Vision" \ | ||
&& git clone --recursive https://github.com/pytorch/vision \ | ||
&& cd vision && python setup.py install \ | ||
## Cleaning | ||
&& echo "|--> Cleaning" \ | ||
&& rm -rf /pytorch \ | ||
&& rm -rf /root/.cache \ | ||
|