-
Notifications
You must be signed in to change notification settings - Fork 48
/
Dockerfile
30 lines (25 loc) · 994 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
# To build the Desmos image, just run:
# > docker build -t desmos .
#
# Simple usage with a mounted data directory:
# > docker run -it -p 26657:26657 -p 26656:26656 -v ~/.desmos:/root/.desmos desmos desmos init
# > docker run -it -p 26657:26657 -p 26656:26656 -v ~/.desmos:/root/.desmos desmos desmos start
#
# If you want to run this container as a daemon, you can do so by executing
# > docker run -td -p 26657:26657 -p 26656:26656 -v ~/.desmos:/root/.desmos --name desmos desmos
#
# Once you have done so, you can enter the container shell by executing
# > docker exec -it desmos bash
#
# To exit the bash, just execute
# > exit
FROM alpine:edge
# Install ca-certificates
RUN apk add --update ca-certificates
# Install bash
RUN apk add --no-cache bash
# Copy over binaries from the build-env
COPY --from=desmoslabs/builder:latest /code/build/desmos /usr/bin/desmos
EXPOSE 26656 26657 1317 9090
# Run desmos by default, omit entrypoint to ease using container with desmos
CMD ["desmos"]