Skip to content

Commit

Permalink
Remove old docker commands
Browse files Browse the repository at this point in the history
  • Loading branch information
miam-miam committed Apr 5, 2024
1 parent 60f6e8d commit 26eb6b2
Showing 1 changed file with 1 addition and 39 deletions.
40 changes: 1 addition & 39 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,42 +22,4 @@ COPY --from=builder /verify-bot/target/release/verify-bot /usr/local/bin
# Install dependencies needed for verify-bot
RUN apt-get update && apt-get -y install libssl-dev openssl ca-certificates tzdata && apt upgrade -y openssl && apt clean && rm -rf /var/lib/apt/lists/*

ENTRYPOINT ["/usr/local/bin/verify-bot"]

#
#FROM rust:1.76-buster as build
#
#RUN apt-get update && apt-get -y install libssl-dev openssl ca-certificates tzdata && apt upgrade -y openssl && apt clean && rm -rf /var/lib/apt/lists/*
#
## create a new empty shell project
#RUN USER=root cargo new --bin verify-bot
#WORKDIR /verify-bot
#
## copy over your manifests
#COPY ./Cargo.lock ./Cargo.lock
#COPY ./Cargo.toml ./Cargo.toml
#
## this build step will cache your dependencies
#RUN cargo build --release
#RUN rm src/*.rs
#
## copy your source tree
#COPY ./src ./src
#COPY ./log4rs.yml ./log4rs.yml
#
## build for release
#RUN rm ./target/release/deps/verify_bot*
#RUN cargo build --release
#
## our final base
#FROM debian:buster
#
#RUN apt-get update && apt-get -y install libssl-dev openssl ca-certificates tzdata && apt upgrade -y openssl && apt clean && rm -rf /var/lib/apt/lists/*
#
## copy the build artifact from the build stage
#COPY --from=build /verify-bot/target/release/verify-bot .
#
## set the startup command to run your binary
#CMD ["./verify-bot"]
#
#
ENTRYPOINT ["/usr/local/bin/verify-bot"]

0 comments on commit 26eb6b2

Please sign in to comment.