Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
target
.git
.github
.claude
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Stage 1: Build the application
FROM rust:alpine AS builder

# Install build dependencies
RUN apk add --no-cache musl-dev

# Create a new empty shell project
WORKDIR /usr/src/roy
COPY . .

# Build for release
RUN cargo build --release

# Stage 2: Create the final, lightweight image
FROM alpine:latest

# Copy the compiled binary from the builder stage
COPY --from=builder /usr/src/roy/target/release/roy /usr/local/bin/roy

# Expose the port the app runs on
EXPOSE 8000

# Set the entrypoint
CMD ["roy", "-vvv"]
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub struct Args {
#[arg(long, help = "Port to listen on", default_value = "8000")]
pub port: u16,

#[arg(long, help = "Address to listen on", default_value = "127.0.0.1")]
#[arg(long, help = "Address to listen on", default_value = "0.0.0.0")]
pub address: IpAddr,

#[arg(
Expand Down