tsk-16: Change response of Register endpoint (#17)
soaricarus_auth Build / Rustfmt (push) Successful in 1m18s
Release Tagging / release (push) Successful in 1m31s
soaricarus_auth Build / Check (push) Successful in 1m34s
soaricarus_auth Build / Clippy (push) Successful in 1m41s
soaricarus_auth Build / Test Suite (push) Successful in 1m46s
soaricarus_auth Build / build (push) Successful in 1m57s

Closes #16

Reviewed-on: #17
This commit was merged in pull request #17.
This commit is contained in:
phoenix committed 2026-11-19 13:02:01 -05:00
1 parent e82a62dec4
commit 868f533395
6 files changed
+132 -140

No files matched your search

+1 -8
View File
@@ -1,4 +1,4 @@
FROM rust:1.99 as builder
FROM rust:1.99.1 as builder
# Set the working directory inside the container
WORKDIR /usr/src/app
@@ -22,7 +22,6 @@ RUN --mount=type=ssh mkdir src && \
rm -rf src target/release/deps/soaricarus_auth*
COPY src ./src
# If you have other directories like `templates` or `static`, copy them too
COPY .env ./.env
COPY migrations ./migrations
@@ -31,22 +30,16 @@ RUN --mount=type=ssh \
FROM debian:trixie-slim
# Install runtime dependencies if needed (e.g., SSL certificates)
RUN apt-get update && apt-get install -y ca-certificates libssl-dev libssl3 && rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /usr/local/bin
# Copy the compiled binary from the builder stage
COPY --from=builder /usr/src/app/target/release/soaricarus_auth .
# Copy other necessary files like .env (if used for runtime config) or static assets
# It's generally better to configure via environment variables in Docker though
COPY --from=builder /usr/src/app/.env .
COPY --from=builder /usr/src/app/migrations ./migrations
EXPOSE 8001
# Set the command to run your application
# Ensure this matches the binary name copied above
CMD ["./soaricarus_auth"]