Skip to content

Commit

Permalink
Rebase
Browse files Browse the repository at this point in the history
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
jamesmstone committed Oct 31, 2016
1 parent aaf7d0b commit fc1bece
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions Dockerfile
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"]

0 comments on commit fc1bece

Please sign in to comment.