Skip to content

Commit

Permalink
Merge pull request #136 from frederik-elwert/update_dockerfile
Browse files Browse the repository at this point in the history
Change Dockerfile to make less calls to apt-get
  • Loading branch information
mnyrop authored Jul 20, 2023
2 parents f680acf + 304cf93 commit b1f57af
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,25 @@ MAINTAINER Andrew Woods <[email protected]>

# Install apt dependencies
RUN apt-get update -y
RUN apt-get install -y build-essential
RUN apt-get install -y software-properties-common
RUN apt-get install -y git
RUN apt-get install -y ghostscript
RUN apt-get install -y imagemagick
RUN apt-get install -y libvips
RUN apt-get install -y --no-install-recommends \
build-essential \
software-properties-common \
git \
ghostscript \
imagemagick \
libvips \
locales \
&& rm -rf /var/lib/apt/lists/*

# Add imagemagick PDF fix
RUN sed -i '/disable ghostscript format types/,+6d' /etc/ImageMagick-6/policy.xml

# Install locales
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
# Set up locales
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8

RUN mkdir /wax
COPY Gemfile* *.gemspec ./wax
COPY Gemfile* *.gemspec /wax/
WORKDIR /wax
RUN bundle

Expand Down

0 comments on commit b1f57af

Please sign in to comment.