-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 937 Bytes
/
Dockerfile
File metadata and controls
34 lines (27 loc) · 937 Bytes
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
FROM ruby:2.5.1
LABEL maintainer='Felipe Endo'
<<<<<<< HEAD
=======
>>>>>>> c20ffba2384c39e7d00373f29684ead8256a2a85
COPY Gemfile Gemfile
COPY Gemfile.lock Gemfile.lock
RUN apt-get update \
&& apt-get install -y qt5-default libqt5webkit5-dev gstreamer1.0-plugins-base gstreamer1.0-tools gstreamer1.0-x \
&& apt-get install -y --no-install-recommends \
postgresql-client vim nodejs locales \
&& apt-get install xvfb \
&& mkdir /nutrilife \
&& gem install bundler \
&& gem install bundler \
&& bundle config build.nokogiri --use-system-libraries \
&& bundle install && gem install bundler-audit \
&& apt-get clean \
&& git config --global user.name "Felipe Docker" \
&& git config --global user.email "felipecs.endo@gmail.com" \
&& alias xrspec='xvfb-run -a bundle exec rspec'
EXPOSE 3000
EXPOSE 80
WORKDIR /nutrilife
ADD . /nutrilife
VOLUME ./nutrilife
ENTRYPOINT ["/bin/bash"]