bundle assets dir in docker image; compose restart policy

This commit is contained in:
2025-11-14 18:28:20 +01:00
parent f706cd74a6
commit fb9c946416
2 changed files with 2 additions and 0 deletions

View File

@@ -61,6 +61,7 @@ ENV DISCORD_SERVER_ID=""
# Copy the executable from the "build" stage. # Copy the executable from the "build" stage.
COPY --from=build /bin/server /bin/ COPY --from=build /bin/server /bin/
COPY ./assets /bin/
# Expose the port that the application listens on. # Expose the port that the application listens on.
EXPOSE 2020 EXPOSE 2020

View File

@@ -5,6 +5,7 @@ services:
target: final target: final
ports: ports:
- 2020:2020 - 2020:2020
restart: unless-stopped
environment: environment:
- DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN} - DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN}
- DISCORD_SERVER_ID=${DISCORD_SERVER_ID} - DISCORD_SERVER_ID=${DISCORD_SERVER_ID}