Skip to content

Commit

Permalink
fix: services docker
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-dm committed Sep 12, 2024
1 parent a0b9f3e commit 5818512
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 5818512

Please sign in to comment.