Fix: path / Del: create config.json as dockerfile
This commit is contained in:
+1
-12
@@ -22,23 +22,12 @@ COPY ./src ./
|
|||||||
# Create replied_ids.json
|
# Create replied_ids.json
|
||||||
RUN touch replied_ids.json
|
RUN touch replied_ids.json
|
||||||
|
|
||||||
# Create config.json
|
|
||||||
RUN cat <<EOF > /app/config.json
|
|
||||||
{
|
|
||||||
"host": "${UWUZU_HOST}",
|
|
||||||
"api_token": "${UWUZU_TOKEN}",
|
|
||||||
"random_ueuse": ${TWEET_ENABLED},
|
|
||||||
"check_interval": ${CHECK_INTERVAL},
|
|
||||||
"rana_core_log": ${THINK_OUTPUT_ENABLED}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Copy entrypoint
|
# Copy entrypoint
|
||||||
COPY ./entrypoint.sh /app/docker-entrypoint.sh
|
COPY ./entrypoint.sh /app/docker-entrypoint.sh
|
||||||
RUN chmod +x /app/docker-entrypoint.sh
|
RUN chmod +x /app/docker-entrypoint.sh
|
||||||
|
|
||||||
# Change line break
|
# Change line break
|
||||||
RUN sed -i 's/\r$//' /entrypoint.sh \
|
RUN sed -i 's/\r$//' /app/docker-entrypoint.sh \
|
||||||
&& find /app -type f -exec sed -i 's/\r$//' {} \;
|
&& find /app -type f -exec sed -i 's/\r$//' {} \;
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
|
|||||||
Reference in New Issue
Block a user