-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (43 loc) · 946 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
ARG RUBY_VERSION
FROM ruby:$RUBY_VERSION-slim-buster
ARG APP_HOME
ARG APP_PORT
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
RUN set -eux; \
apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
wget curl \
\
git \
openssh-client \
gsfonts \
imagemagick libmagick++-dev \
build-essential \
libpq-dev \
vim \
less \
default-libmysqlclient-dev \
locales \
locales-all \
libsqlite3-dev \
postgresql postgresql-contrib \
apt-transport-https \
gnupg \
python2 \
; \
apt-get clean && \
rm -rf /var/lib/apt/lists/*;
ENV DEBIAN_FRONTEND dialog
WORKDIR $APP_HOME
ADD ./app/. $APP_HOME
COPY ./scripts/. /
RUN for file_name in "/start.sh /entrypoint.sh /setup.sh /custom_shell.sh"; do \
chmod +x $file_name; \
done
RUN bundle install
RUN /setup.sh
EXPOSE $APP_PORT
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/start.sh"]