forked from fly-apps/dockerfile-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_apt_install.erb
More file actions
21 lines (20 loc) · 797 Bytes
/
_apt_install.erb
File metadata and controls
21 lines (20 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<% if options.cache? -%>
RUN <%= pkg_cache.map {|name, path| "--mount=type=cache,id=#{name},sharing=locked,target=#{path} \\"}.join("\n ") %>
<%= repos %><%= pkg_update %> && \
<%= pkg_install %> <%= packages.join(" ") %>
<% elsif options.alpine? && clean -%>
RUN apk add --no-cache <%= packages.join(" ") %>
<% else -%>
RUN <%= repos %><%= pkg_update %> && \
<%= pkg_install %> <%= packages.join(" ") %><% if clean %> && \
rm -rf <%= pkg_cleanup %><% end %>
<% end -%>
<% if @sqlserver -%>
# install freetds required by tiny_tds gem
RUN wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-1.3.16.tar.gz && \
tar -xzf freetds-1.3.16.tar.gz && \
cd freetds-1.3.16 && \
./configure --prefix=/usr/local --with-tdsver=7.3 && \
make && \
make install
<% end -%>