From 6551294e53f5c193dc87fab71d56b2853dc15285 Mon Sep 17 00:00:00 2001 From: imnyang Date: Thu, 12 Mar 2026 18:51:54 +0900 Subject: [PATCH] Add Dockerfile and compose.yml for application setup and upload directory --- Dockerfile | 2 ++ compose.yml | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 compose.yml diff --git a/Dockerfile b/Dockerfile index eb6c1b7..d56556b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,6 +54,8 @@ USER imnyang # Copy only the compiled binary from the build stage. COPY --from=build /bin/server /app/ +RUN mkdir -p /app/uploads + # Rocket: listen on all interfaces inside the container. ENV ROCKET_ADDRESS=0.0.0.0 diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..dfa4758 --- /dev/null +++ b/compose.yml @@ -0,0 +1,8 @@ +services: + app: + image: git.mizuki.guru/imnyang/paste:latest + ports: + - "11108:8000" + volumes: + - ./uploads:/app/uploads + - ./config.toml:/app/config.toml