-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 813 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (18 loc) · 813 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
FROM ruby:2.6.3
RUN sed -i \
-e 's|^# deb http://snapshot.debian.org|deb http://snapshot.debian.org|' \
-e 's|^deb http://deb.debian.org|# deb http://deb.debian.org|' \
-e 's|^deb http://security.debian.org|# deb http://security.debian.org|' \
/etc/apt/sources.list \
&& apt-get -o Acquire::Check-Valid-Until=false update -qq \
&& apt-get install -y --no-install-recommends build-essential \
&& rm -rf /var/lib/apt/lists/*
ENV PROJECT_PATH /data/apps/changelogger
RUN mkdir -p $PROJECT_PATH
WORKDIR /data/apps/changelogger
ADD ./changelogger ./
EXPOSE 3000
COPY script/entrypoint.sh /usr/local/bin/
RUN ln -s /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]