amtrack_rs 0.1.2

A fully open-source Rust-based API and Package for fetching live train and station data from Amtrak.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM rust:1.81 as builder
WORKDIR /app
COPY . .
RUN cargo install --path .
FROM debian:buster-slim as runner
# Install OpenSSL and its dependencies
RUN apt-get update && apt-get install -y \
    libssl1.1 \
    ca-certificates \
    && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/amtrack_rs /usr/local/bin/amtrack_rs
ENV ROCKET_ADDRESS=0.0.0.0
EXPOSE 1972
CMD ["amtrack_rs"]