forked from maltekrupa/docker-log.io-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 633 Bytes
/
Dockerfile
File metadata and controls
23 lines (17 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM debian:jessie
RUN apt-get update
# Install curl and nodejs
RUN apt-get -y install curl && curl -sL https://deb.nodesource.com/setup | bash -
# Add requirements, add user and install log.io
RUN apt-get -y install adduser make gcc g++ nodejs
RUN adduser --shell /bin/false --gecos "" --disabled-password logio
RUN export USER=logio; export HOME=/home/logio; npm install -g log.io --user "logio"
#Copy web_server.conf into container
COPY ./deps/web_server.conf /home/logio/.log.io
# Configure Docker and add config files
USER logio
ENV HOME /home/logio
ENV USER logio
WORKDIR /home/logio
EXPOSE 28777 28778
CMD log.io-server