Del: default env value / Fix: #5

This commit is contained in:
2025-12-17 19:34:48 +09:00
parent ba868f2322
commit 7ae4c53a5a
4 changed files with 34 additions and 13 deletions
+7 -9
View File
@@ -1,13 +1,6 @@
# Load Node.js
FROM --platform=$BUILDPLATFORM node:24.12.0-bullseye-slim
# Set required/default env
ENV UWUZU_HOST=${UWUZU_HOST}
ENV UWUZU_TOKEN=${UWUZU_TOKEN}
ENV TWEET_ENABLED=${TWEET_ENABLED:-true}
ENV CHECK_INTERVAL=${CHECK_INTERVAL:-300}
ENV THINK_OUTPUT_ENABLED=${THINK_OUTPUT_ENABLED:-false}
# Set working directory
WORKDIR /app
@@ -40,8 +33,13 @@ RUN cat <<EOF > /app/config.json
}
EOF
# Copy entrypoint
COPY ./entrypoint.sh /app/docker-entrypoint.sh
RUN chmod +x /app/docker-entrypoint.sh
# Change line break
RUN find /app -type f -exec sed -i 's/\r$//' {} \;
RUN sed -i 's/\r$//' /entrypoint.sh \
&& find /app -type f -exec sed -i 's/\r$//' {} \;
# Run
CMD [ "npm", "start" ]
ENTRYPOINT ["/app/docker-entrypoint.sh"]