From 201415c600e50460d5195163c59334bfa95da300 Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Fri, 14 Nov 2025 18:33:16 +0100 Subject: [PATCH] dockerfile filepath shenanigans --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6a30ca3..6f160c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,17 +54,20 @@ RUN adduser \ --no-create-home \ --uid "${UID}" \ appuser + +RUN mkdir -p /app && chown appuser:appuser /app USER appuser +WORKDIR /app ENV DISCORD_BOT_TOKEN="" ENV DISCORD_SERVER_ID="" # Copy the executable from the "build" stage. -COPY --from=build /bin/server /bin/ -COPY ./assets /bin/ +COPY --from=build /bin/server /app/server +COPY ./assets /app/assets # Expose the port that the application listens on. EXPOSE 2020 # What the container should run when it is started. -CMD ["/bin/server"] +CMD ["/app/server"]