-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile-ruby2.5
54 lines (43 loc) · 1.63 KB
/
Dockerfile-ruby2.5
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ruby:2.5.5
############################
########## LOCALE ##########
############################
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
ENV CONTAINER_LOCALE en_US
RUN sed -i -e "s/# ${CONTAINER_LOCALE}.UTF-8 UTF-8/${CONTAINER_LOCALE}.UTF-8 UTF-8/" /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=${CONTAINER_LOCALE}.UTF-8
ENV LANG ${CONTAINER_LOCALE}.UTF-8
############################
########## NODEJS ##########
############################
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
apt-get install -y nodejs
##########################
########## YARN ##########
##########################
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install -y yarn
##########################
########## GOSU ##########
##########################
RUN set -eux; \
apt-get update; \
apt-get install -y gosu; \
# verify that the binary works
gosu nobody true
#################################
########## ImageMagick ##########
#################################
RUN apt-get update && \
apt-get install -y imagemagick libmagickcore-dev libmagickwand-dev libssl1.0-dev
ENV PATH /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/:${PATH}
#################################
######## Clean apt cache ########
#################################
RUN rm -rf /var/lib/apt/lists/*
##########################
########## REST ##########
##########################
ADD inputrc /etc/inputrc