Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move dockerfile #12

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading