Skip to content
Snippets Groups Projects
Commit 89835a69 authored by Tobias Rempe's avatar Tobias Rempe :telescope:
Browse files

feat: Dockerfile

parent b6986bf7
Branches
No related tags found
No related merge requests found
FROM rust:slim-bookworm AS builder
RUN apt update && apt install -y perl libfindbin-libs-perl build-essential
COPY . /app
WORKDIR /app
RUN ["cargo", "build", "--release" ]
FROM debian:12.9-slim
RUN useradd -ms /bin/bash scraper
WORKDIR /app
COPY --from=builder /app/target/release /app
WORKDIR /app
RUN chmod +x /app/pretix_data_scraper && chown -R pretix_data_scraper /app
USER scraper
ENTRYPOINT ["/app/pretix_data_scraper"]
......@@ -111,7 +111,7 @@ async fn main() {
let app = Router::new()
.route("/", get(|| async { "Hello World!" }))
.route("/", get(|| async { "FSI-Fahrten Pretix Data Scraper" }))
.route("/stats", get(stats::get_global_stats))
.with_state(context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment