Skip to content

Commit

Permalink
Fixed docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
kchudy committed Jul 20, 2023
1 parent 395a743 commit bb692eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@ FROM rust:1.71 AS builder
WORKDIR /opt
COPY Cargo.toml Cargo.lock ./
COPY src ./src
COPY vonage ./vonage
COPY hookshot ./hookshot
RUN cargo install --locked --path . --root /tmp

FROM debian:12.0-slim
FROM debian:bullseye-slim
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends openssl ca-certificates \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt
COPY --from=builder /tmp/bin/vonage_to_matrix ./
CMD ./vonage_to_matrix
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
services:
vonage-to-matrix:
build: vonage-to-matrix
build: .
ports:
- 8080:8080
environment:
RUST_LOG: info
volumes:
- ./config.toml:/opt/config.toml

0 comments on commit bb692eb

Please sign in to comment.