forked from SUSE/Portus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (23 loc) · 1.03 KB
/
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
FROM opensuse/ruby:2.4
MAINTAINER SUSE Containers Team <[email protected]>
ENV COMPOSE=1
EXPOSE 3000
WORKDIR /srv/Portus
COPY Gemfile* ./
# Let's explain this RUN command:
# 1. First of all we refresh, since opensuse/ruby does a zypper clean -a in
# the end.
# 2. Then we install dev. dependencies and the devel_basis pattern (used for
# building stuff like nokogiri). With that we can run bundle install.
# 3. We then proceed to remove unneeded clutter: first we remove some packages
# installed with the devel_basis pattern, and finally we zypper clean -a.
RUN zypper ref && \
zypper -n in --no-recommends ruby2.4-devel ruby2.4-rubygem-bundler \
libxml2-devel nodejs libmysqlclient-devel postgresql-devel libxslt1 && \
zypper -n in --no-recommends -t pattern devel_basis && \
bundle install --retry=3 && \
zypper -n rm wicked wicked-service autoconf automake \
binutils bison cpp cvs flex gdbm-devel gettext-tools \
libtool m4 make makeinfo && \
zypper clean -a
ADD . .