Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
slackspace-io committed Mar 21, 2024
1 parent 39ba269 commit bd38eb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions rust/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ COPY . .
# Copy our manifests
# Build only the dependencies to cache them
RUN cargo build --release
RUN rm src/*.rs

RUN touch src/main.rs && cargo build --release

# Use the official Debian Buster Slim image for the runtime stage
FROM alpine:latest

# Copy the binary from the builder stage
COPY --from=builder /app/target/release/rust-slackwatch .
COPY --from=builder /app/target/release/slackwatch .

# Set the CMD to your binary
CMD ["./rust-slackwatch"]
CMD ["./slackwatch"]
2 changes: 0 additions & 2 deletions rust/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use crate::database::client::create_table_if_not_exist;
use std::env;
use crate::config::Settings;

mod oldc;
mod database;
mod kubernetes;
mod models;
Expand Down

0 comments on commit bd38eb0

Please sign in to comment.