forked from OwnYourData/oyd-pia2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 801 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (24 loc) · 801 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
FROM ruby:2.5.7
MAINTAINER "Christoph Fabianek" christoph@ownyourdata.eu
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# RUN echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list && \
RUN echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
# libsodium-dev=1.0.17-1~bpo9+1 \
libsodium-dev \
libpq-dev \
nodejs \
postgresql-client && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENV RAILS_ROOT $WORKDIR
RUN mkdir -p $RAILS_ROOT/tmp/pids
COPY Gemfile /usr/src/app/
RUN bundle install --without development test
RUN gem install bundler
COPY . .
RUN bundle update
CMD ["rails", "server", "-b", "0.0.0.0"]
EXPOSE 587 3000