Farmbot-Web-App/docker_configs/api.Dockerfile

13 lines
761 B
Plaintext
Raw Normal View History

2020-01-07 09:03:27 -07:00
FROM ruby:2.6.5
2019-11-07 09:40:19 -07:00
RUN wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | apt-key add - && \
sh -c 'VERSION_CODENAME=stretch; . /etc/os-release; echo "deb http://apt.postgresql.org/pub/repos/apt/ $VERSION_CODENAME-pgdg main" >> /etc/apt/sources.list.d/pgdg.list' && \
apt-get update -qq && apt-get install -y build-essential libpq-dev postgresql postgresql-contrib && \
2020-01-23 17:04:34 -07:00
curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
2019-11-07 09:40:19 -07:00
sh -c 'echo "\nPackage: *\nPin: origin deb.nodesource.com\nPin-Priority: 700\n" >> /etc/apt/preferences' && \
apt-get install -y nodejs && \
mkdir /farmbot;
WORKDIR /farmbot
2018-10-01 13:39:10 -06:00
ENV BUNDLE_PATH=/bundle BUNDLE_BIN=/bundle/bin GEM_HOME=/bundle
ENV PATH="${BUNDLE_BIN}:${PATH}"
2018-10-01 13:29:47 -06:00
COPY ./Gemfile /farmbot