-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (28 loc) · 862 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
##############################
## Build dev relay
##############################
FROM rust:latest AS rust-builder
RUN update-ca-certificates
# Pull a fork of chorus
RUN git clone -b latest https://github.com/mikedilger/chorus.git
WORKDIR /chorus
RUN cargo build --release
##############################
## Create dev image for docker compose
##############################
FROM ubuntu:22.04
RUN apt-get update && \
apt-get install -y ca-certificates && \
apt-get clean
WORKDIR /relay
# This data directory is used for the relay to store its data and can be
# mounted to a persistent volume.
RUN mkdir data
# Copy a default config file
COPY ./config.toml ./
# Copy binary release
COPY --from=rust-builder /chorus/target/release/chorus ./chorus
RUN chmod +x /relay/chorus
# Expose websocket port
EXPOSE 8080
CMD ["/relay/chorus", "./config.toml"]