account/Dockerfile

23 lines
368 B
Text
Raw Normal View History

2025-03-05 23:20:11 +01:00
FROM rust:1.85 as builder
WORKDIR /app
COPY . .
RUN cargo build --release
2025-03-06 11:36:21 +00:00
RUN rm .env
2025-03-05 23:20:11 +01:00
FROM rust:1.85 AS final
WORKDIR /app
# Copy the compiled binary from the builder stage
COPY --from=builder /app/target/release/account /app/account
# Set executable permissions
2025-03-06 11:41:04 +00:00
RUN chmod +x /app/account
2025-03-05 23:20:11 +01:00
# Command to run the application
CMD ["ls /app"]
CMD ["/app/account"]