Skip to content

Commit

Permalink
Merge pull request #305 from anarcat/docker-order
Browse files Browse the repository at this point in the history
Reorder Dockerfile for performance
  • Loading branch information
JoeLametta authored Oct 6, 2018
2 parents 6d7e54f + dad3b6e commit 8b5e8a6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ RUN curl -o - 'https://ftp.gnu.org/gnu/libcdio/libcdio-paranoia-10.2+0.94+2.tar.

RUN ldconfig

# install whipper
RUN mkdir /whipper
COPY . /whipper/
RUN cd /whipper/src && make && make install \
&& cd /whipper && python2 setup.py install \
&& rm -rf /whipper \
&& whipper -v

# add user
RUN useradd -m worker -G cdrom \
&& mkdir -p /output /home/worker/.config/whipper \
Expand All @@ -50,6 +42,14 @@ RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment \
&& locale-gen en_US.UTF-8 \
&& apt-get clean && apt-get autoremove -y

# install whipper
RUN mkdir /whipper
COPY . /whipper/
RUN cd /whipper/src && make && make install \
&& cd /whipper && python2 setup.py install \
&& rm -rf /whipper \
&& whipper -v

ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US
ENV LANGUAGE=en_US.UTF-8
Expand Down

0 comments on commit 8b5e8a6

Please sign in to comment.