-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change to use alpine linux, much small base image size. + Change Maintainer to Label http://stackoverflow.com/a/39767934/1432051 + run through dockfmt https://github.com/jessfraz/dockfmt Split up build so dependencies can be cached. However not sure if this is ideal from a security perspective.
- Loading branch information
1 parent
aaf7d0b
commit fc1bece
Showing
1 changed file
with
22 additions
and
21 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,26 +1,27 @@ | ||
FROM ubuntu:xenial | ||
|
||
FROM alpine:latest | ||
LABEL authors "Isaac \"Ike\" Arias <[email protected]>,James Stone" | ||
|
||
MAINTAINER Isaac "Ike" Arias <[email protected]> | ||
RUN apk add --no-cache \ | ||
--update \ | ||
curl \ | ||
tar \ | ||
bzip2 \ | ||
freetype \ | ||
mesa-dev \ | ||
mesa \ | ||
libxi | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
curl \ | ||
bzip2 \ | ||
libfreetype6 \ | ||
libgl1-mesa-dev \ | ||
libglu1-mesa \ | ||
libxi6 && \ | ||
apt-get -y autoremove && \ | ||
rm -rf /var/lib/apt/lists/* | ||
ENV BLENDER_MAJOR 2.77 | ||
ENV BLENDER_VERSION 2.77a | ||
ENV BLENDER_BZ2_URL http://mirror.cs.umn.edu/blender.org/release/Blender$BLENDER_MAJOR/blender-$BLENDER_VERSION-linux-glibc211-x86_64.tar.bz2 | ||
|
||
ENV BLENDER_MAJOR 2.77 | ||
ENV BLENDER_VERSION 2.77a | ||
ENV BLENDER_BZ2_URL http://mirror.cs.umn.edu/blender.org/release/Blender$BLENDER_MAJOR/blender-$BLENDER_VERSION-linux-glibc211-x86_64.tar.bz2 | ||
RUN mkdir /usr/local/blender \ | ||
&& curl -SL "$BLENDER_BZ2_URL" -o blender.tar.bz2 \ | ||
&& tar -jxvf blender.tar.bz2 -C /usr/local/blender --strip-components=1 \ | ||
&& rm blender.tar.bz2 \ | ||
&& apk del curl | ||
|
||
RUN mkdir /usr/local/blender && \ | ||
curl -SL "$BLENDER_BZ2_URL" -o blender.tar.bz2 && \ | ||
tar -jxvf blender.tar.bz2 -C /usr/local/blender --strip-components=1 && \ | ||
rm blender.tar.bz2 | ||
|
||
VOLUME /media | ||
ENTRYPOINT ["/usr/local/blender/blender", "-b"] | ||
VOLUME /media | ||
ENTRYPOINT ["/usr/local/blender/blender","-b"] |