Commit 166764aa authored by Svetomir Smiljkovic's avatar Svetomir Smiljkovic Committed by Janoš Guljaš

update Dockerfile and default configuration (#3)

parent edb8d5d5
...@@ -12,13 +12,16 @@ FROM debian:10.2-slim ...@@ -12,13 +12,16 @@ FROM debian:10.2-slim
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
ca-certificates && \ ca-certificates; \
apt-get clean && rm -rf /var/lib/apt/lists/* && \ apt-get clean; \
groupadd -r drone && \ rm -rf /var/lib/apt/lists/*; \
useradd --no-log-init -r -g drone drone groupadd -r bee --gid 999; \
useradd -r -g bee --uid 999 --no-log-init -m bee;
COPY --from=build /src/dist/bee /usr/local/bin/bee COPY --from=build /src/dist/bee /usr/local/bin/bee
USER drone EXPOSE 6060 7070 8080
USER bee
WORKDIR /home/bee
ENTRYPOINT ["bee"] ENTRYPOINT ["bee"]
...@@ -142,7 +142,7 @@ func (c *command) initStartCmd() (err error) { ...@@ -142,7 +142,7 @@ func (c *command) initStartCmd() (err error) {
cmd.Flags().Bool(optionNameP2PDisableWS, false, "disable P2P WebSocket protocol") cmd.Flags().Bool(optionNameP2PDisableWS, false, "disable P2P WebSocket protocol")
cmd.Flags().Bool(optionNameP2PDisableQUIC, false, "disable P2P QUIC protocol") cmd.Flags().Bool(optionNameP2PDisableQUIC, false, "disable P2P QUIC protocol")
cmd.Flags().StringSlice(optionNameBootnodes, nil, "initial nodes to connect to") cmd.Flags().StringSlice(optionNameBootnodes, nil, "initial nodes to connect to")
cmd.Flags().String(optionNameDebugAPIAddr, "", "debug HTTP API listen address, e.g. 127.0.0.1:6060") cmd.Flags().String(optionNameDebugAPIAddr, ":6060", "debug HTTP API listen address")
cmd.Flags().Int32(optionNameNetworkID, 1, "ID of the Swarm network") cmd.Flags().Int32(optionNameNetworkID, 1, "ID of the Swarm network")
cmd.Flags().Int(optionNameConnectionsLow, 200, "low watermark governing the number of connections that'll be maintained") cmd.Flags().Int(optionNameConnectionsLow, 200, "low watermark governing the number of connections that'll be maintained")
cmd.Flags().Int(optionNameConnectionsHigh, 400, "high watermark governing the number of connections that'll be maintained") cmd.Flags().Int(optionNameConnectionsHigh, 400, "high watermark governing the number of connections that'll be maintained")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment