-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
39 lines (31 loc) · 990 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
FROM ruby:2.6-slim
LABEL maintainer "Ilya Milov <[email protected]>"
ARG COMMIT=0b4177561858a9a64d7d519153a3fcd7be691991
ENV LANG="C.UTF-8" \
DEPS="build-essential \
libsqlite3-dev \
libcurl4-openssl-dev \
wget"
RUN apt-get update \
&& apt-get install -y $DEPS \
sqlite3 \
nodejs \
&& useradd -m beef \
&& wget -q https://github.com/beefproject/beef/tarball/$COMMIT -O beef.tgz \
&& mkdir /home/beef/beef \
&& tar -xzf beef.tgz --strip 1 -C /home/beef/beef \
&& cd /home/beef/beef \
&& chown -R beef:beef /home/beef \
&& gem install bundler:2.1.4 \
&& bundle config set --local without 'test development' \
&& bundle install \
\
&& rm -rf beef.tgz \
&& apt-get purge -y $DEPS \
&& apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /home/beef/beef
USER beef
EXPOSE 3000 6789 61985 61986
COPY entrypoint.sh /tmp/entrypoint.sh
ENTRYPOINT ["/tmp/entrypoint.sh"]