This repository was archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (38 loc) · 1.31 KB
/
Dockerfile
File metadata and controls
49 lines (38 loc) · 1.31 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:16.04
MAINTAINER Dmitry Mozzherin
ENV LAST_FULL_REBUILD 2019-02-21
RUN apt-get update && \
apt-get install -y software-properties-common && \
apt-add-repository ppa:brightbox/ruby-ng && \
apt-get update && \
apt-get install -y ruby2.6 ruby2.6-dev ruby-switch \
zlib1g-dev liblzma-dev libxml2-dev libpq-dev git locales \
libxslt-dev supervisor build-essential nodejs supervisor && \
apt-get -y install graphicsmagick poppler-utils poppler-data \
ghostscript tesseract-ocr pdftk libreoffice libmagic-dev && \
add-apt-repository -y ppa:nginx/stable && \
apt-get update && \
apt-get install -qq -y nginx && \
echo "\ndaemon off;" >> /etc/nginx/nginx.conf && \
chown -R www-data:www-data /var/lib/nginx && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV RACK_ENV development
ENV RESQUE_WORKERS 1
ENV QUEUE NameFinder
ENV PUMA_WORKERS 2
RUN ruby-switch --set ruby2.6
RUN echo 'gem: --no-rdoc --no-ri >> "$HOME/.gemrc"'
RUN gem install bundler && \
mkdir /app
WORKDIR /app
COPY config/docker/nginx-sites.conf /etc/nginx/sites-enabled/default
COPY Gemfile /app
# COPY Gemfile.lock /app
RUN bundle install
COPY . /app
CMD ["/app/exe/docker.sh"]