Skip to content

Commit

Permalink
With new dev-ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy committed Jun 16, 2021
1 parent aea33dd commit 7f27647
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# syntax=docker/dockerfile:experimental
FROM rust:1.48 as builder
RUN --mount=type=cache,target=/usr/local/cargo/registry \
cargo install sccache
WORKDIR /usr/src/zksync
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/root/.cache/sccache \
RUSTC_WRAPPER=/usr/local/cargo/bin/sccache \
cargo build --release

FROM debian:buster-slim
RUN apt update
RUN apt install openssl -y
EXPOSE 9876
ENV RUST_LOG info
COPY --from=builder /usr/src/zksync/target/release/dev-ticker-server /bin/
ENTRYPOINT ["dev-ticker-server"]
2 changes: 1 addition & 1 deletion docker-compose-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
- PLUGIN_CONFIG

dev-ticker:
image: "matterlabs/dev-ticker:latest"
build: .
volumes:
- ./etc/tokens/:/etc/tokens

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
- ./etc/tokens/:/etc/tokens

dev-ticker:
image: "matterlabs/dev-ticker:latest"
build: .
ports:
- "9876:9876"
volumes:
Expand Down

0 comments on commit 7f27647

Please sign in to comment.