forked from tanium/octobot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (32 loc) · 820 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
FROM ubuntu:latest
# install run deps
RUN apt-get update \
&& apt-get install -y \
ca-certificates \
git \
firejail \
gosu \
python \
openssl \
libsqlite3-0 \
&& rm -fr /var/lib/apt/lists/
RUN groupadd -r octobot
RUN useradd -r -g octobot -m -s /sbin/nologin octobot
ENV HOME=/home/octobot
RUN mkdir -p $HOME/bin
RUN mkdir -p $HOME/logs
ADD ./.docker-tmp/bin $HOME/bin
ADD docker-entrypoint.sh $HOME/bin/
RUN chown -R octobot:octobot $HOME/bin
VOLUME /data
WORKDIR $HOME/bin
EXPOSE 3000
ENV USER=octobot
ENV RUST_LOG=info
ENV PATH=$PATH:$HOME/bin
ENV GIT_AUTHOR_NAME octobot
ENV GIT_AUTHOR_EMAIL [email protected]
ENV GIT_COMMITTER_NAME $GIT_AUTHOR_NAME
ENV GIT_COMMITTER_EMAIL $GIT_AUTHOR_EMAIL
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["octobot", "/data/config.toml"]