dockerfile filepath shenanigans

This commit is contained in:
2025-11-14 18:33:16 +01:00
parent fb9c946416
commit 201415c600

View File

@@ -54,17 +54,20 @@ RUN adduser \
--no-create-home \ --no-create-home \
--uid "${UID}" \ --uid "${UID}" \
appuser appuser
RUN mkdir -p /app && chown appuser:appuser /app
USER appuser USER appuser
WORKDIR /app
ENV DISCORD_BOT_TOKEN="" ENV DISCORD_BOT_TOKEN=""
ENV DISCORD_SERVER_ID="" 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 /app/server
COPY ./assets /bin/ COPY ./assets /app/assets
# Expose the port that the application listens on. # Expose the port that the application listens on.
EXPOSE 2020 EXPOSE 2020
# What the container should run when it is started. # What the container should run when it is started.
CMD ["/bin/server"] CMD ["/app/server"]