forked from openfarmcc/OpenFarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (26 loc) · 900 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
30
31
32
33
34
35
#
# Image name: openfarm-webapp
#
FROM ubuntu:trusty
MAINTAINER https://github.com/FarmBot/OpenFarm
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
software-properties-common \
python-software-properties && \
apt-add-repository ppa:brightbox/ruby-ng
RUN apt-get update && apt-get install -y \
ruby2.1 \
ruby2.1-dev \
git \
build-essential
RUN gem install bundler
ADD Gemfile /openfarm/Gemfile
ADD Gemfile.lock /openfarm/Gemfile.lock
WORKDIR /openfarm
RUN bundle install
# ADD code for production, this will be replaced by a volume during development
ADD . /openfarm
# Environment is passed in from the host environment, disable the warning
RUN touch /openfarm/config/app_environment_variables.rb
CMD bundle exec rails server
EXPOSE 3000