Add Dockerfile and compose.yml for application setup and upload directory
Some checks failed
/ print-content (push) Failing after 3s
Some checks failed
/ print-content (push) Failing after 3s
This commit is contained in:
parent
667638a9ce
commit
6551294e53
2 changed files with 10 additions and 0 deletions
|
|
@ -54,6 +54,8 @@ USER imnyang
|
||||||
# Copy only the compiled binary from the build stage.
|
# Copy only the compiled binary from the build stage.
|
||||||
COPY --from=build /bin/server /app/
|
COPY --from=build /bin/server /app/
|
||||||
|
|
||||||
|
RUN mkdir -p /app/uploads
|
||||||
|
|
||||||
# Rocket: listen on all interfaces inside the container.
|
# Rocket: listen on all interfaces inside the container.
|
||||||
ENV ROCKET_ADDRESS=0.0.0.0
|
ENV ROCKET_ADDRESS=0.0.0.0
|
||||||
|
|
||||||
|
|
|
||||||
8
compose.yml
Normal file
8
compose.yml
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue