Add Dockerfile and compose.yml for application setup and upload directory
Some checks failed
/ print-content (push) Failing after 3s

This commit is contained in:
암냥 2026-03-12 18:51:54 +09:00
commit 6551294e53
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

View file

@ -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

8
compose.yml Normal file
View file

@ -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