bundle assets dir in docker image; compose restart policy
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user