generated from minicomp/wax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (23 loc) · 769 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ruby:2.7.2
MAINTAINER Andrew Woods <[email protected]>
# Install apt dependencies
RUN apt-get update -y
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
# 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/
WORKDIR /wax
RUN bundle
EXPOSE 4000