Skip to content

Commit

Permalink
Merge pull request #25 from postech-5soat-grupo-25/fix/services-docker
Browse files Browse the repository at this point in the history
fix: services docker
  • Loading branch information
albert-dm authored Sep 12, 2024
2 parents a0b9f3e + 5818512 commit 9805947
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
File renamed without changes.
24 changes: 24 additions & 0 deletions Dockerfile.listener
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM rust:1.75-alpine3.19 as builder


# Feature apenas em nightly
RUN rustup update nightly

RUN rustup default nightly

# Definindo a pasta dentro do container onde
WORKDIR /usr/src/tech-challenge

# Install necessary packages for building Rust applications and OpenSSL development headers
RUN apk add musl-dev openssl-dev

COPY . .

RUN cargo build --release --bin listener

# Criando um novo stage com imagem scratch e passando apenas os
# arquivos necessarios
FROM scratch as production
COPY --from=builder /usr/src/tech-challenge/target/release /
ENTRYPOINT [ "/listener" ]
EXPOSE 3000

0 comments on commit 9805947

Please sign in to comment.