forked from streamr-dev/network
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.tracker
More file actions
24 lines (20 loc) · 812 Bytes
/
Dockerfile.tracker
File metadata and controls
24 lines (20 loc) · 812 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
FROM node:18-bullseye as build
WORKDIR /usr/src/network
COPY . .
RUN --mount=type=cache,target=/root/.npm \
npm run bootstrap-pkg --package=@streamr/network-tracker && \
npm run prune-pkg -- @streamr/network-tracker
FROM node:18-bullseye-slim
ARG NODE_ENV
ENV NODE_ENV=${NODE_ENV:-production}
RUN apt-get update && apt-get --assume-yes --no-install-recommends install \
curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN usermod -d /home/streamr -l streamr node && groupmod -n streamr node
USER streamr
WORKDIR /home/streamr/network
COPY --chown=root:root --from=build /usr/src/network/ .
ENV LOG_LEVEL=info
WORKDIR /home/streamr/network/packages/network-tracker
CMD ["/usr/local/bin/npm", "exec", "streamr-tracker", "--", "0x0000000000000000000000000000000000000000000000000000000000000001"]