Skip to content

Commit

Permalink
Merge pull request #12 from postech-5soat-grupo-25/develop
Browse files Browse the repository at this point in the history
feat: move dockerfile
  • Loading branch information
MatheusBLopes authored Sep 11, 2024
2 parents 40f69c6 + 6091739 commit 7decf13
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM rust:1.79-alpine3.20 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 apk --update add ca-certificates

RUN cargo build --release

RUN cargo build --release
ENTRYPOINT [ "/usr/src/tech-challenge/target/release/api" ]
EXPOSE 3000

0 comments on commit 7decf13

Please sign in to comment.