Del: default env value / Fix: #5
This commit is contained in:
+7
-9
@@ -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"]
|
||||
Reference in New Issue
Block a user