-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
45 lines (39 loc) · 1.39 KB
/
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
ARG RUBY_VERSION
# tag list https://mcr.microsoft.com/v2/vscode/devcontainers/ruby/tags/list
FROM mcr.microsoft.com/vscode/devcontainers/ruby:$RUBY_VERSION
ARG APP_HOME
ARG APP_PORT
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
RUN set -eux; \
apt update && \
apt upgrade && \
apt install -y --no-install-recommends \
bzr git mercurial subversion \
gsfonts \
imagemagick libmagick++-dev \
build-essential libpq-dev libclang-dev \
vim less locales locales-all \
default-libmysqlclient-dev libsqlite3-dev \
curl --fix-missing \
; \
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt update \
&& apt install gh -y ; \
apt 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 update
RUN bundle install
RUN /setup.sh
EXPOSE $APP_PORT
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/start.sh"]