forked from foodcoops/foodsoft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (21 loc) · 705 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
FROM ruby:2.3.8-jessie
RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list
ENV PORT=3000
ENV SMTP_SERVER_PORT=2525
ENV RAILS_ENV=production
ENV RAILS_LOG_TO_STDOUT=true
ENV RAILS_SERVE_STATIC_FILES=true
ENV BUNDLE_PATH=/home/app/bundle
ENV BUNDLE_APP_CONFIG=/home/app/bundle/config
WORKDIR /home/app/src
COPY . ./
COPY Gemfile ./
COPY Gemfile.lock ./
# install dependencies and generate crontab
RUN apt-get update
RUN apt-get install --no-install-recommends -y libmagic-dev node.js
RUN bundle install --without development test
EXPOSE 3000
# cleanup, and by default start web process from Procfile
ENTRYPOINT ["./docker-entrypoint.sh"]
#CMD ["./proc-start", "web"]