Update Dockerfile

This commit is contained in:
LucifersCircle 2024-11-29 03:38:27 -08:00
parent 2f7f07682e
commit b196ec6927

View file

@ -1,8 +1,8 @@
# Build stage # Build stage
FROM rust:latest AS builder FROM rust:latest AS builder
# Install musl target for static linking # Install musl-tools for static linking
RUN rustup target add x86_64-unknown-linux-musl RUN apt-get update && apt-get install -y musl-tools && rustup target add x86_64-unknown-linux-musl
# Set the working directory # Set the working directory
WORKDIR /build WORKDIR /build
@ -22,7 +22,7 @@ COPY --from=builder /build/target/x86_64-unknown-linux-musl/release/redlib /usr/
# Set the working directory # Set the working directory
WORKDIR /app WORKDIR /app
# Expose the application port # Expose the application port (update if needed)
EXPOSE 8080 EXPOSE 8080
# Run the binary # Run the binary