4 Commits

Author SHA1 Message Date
last2014 b4f15bbade Add: --platform(FROM) 2025-12-17 17:28:42 +09:00
last2014 1e56b35306 Fix: line break 2025-12-17 01:48:48 +09:00
last2014 37b680c6f5 Fix: line break / Fix: directory 2025-12-17 01:38:14 +09:00
last2014 ed01b58d2e Fix: line break 2025-12-17 01:22:35 +09:00
+6 -2
View File
@@ -1,4 +1,4 @@
FROM node:24.12.0-alpine3.23 FROM --platform=$BUILDPLATFORM node:24.12.0-alpine3.23
# Set working directory # Set working directory
WORKDIR /app WORKDIR /app
@@ -10,7 +10,7 @@ COPY ./src/package.json ./
RUN npm install RUN npm install
# Copy source # Copy source
COPY ./src ./src COPY ./src ./
# Create replied_ids.json # Create replied_ids.json
RUN touch replied_ids.json RUN touch replied_ids.json
@@ -19,5 +19,9 @@ RUN touch replied_ids.json
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
# Change line break
RUN sed -i 's/\r$//' /entrypoint.sh \
&& find /app -type f -exec sed -i 's/\r$//' {} \;
# Run entrypoint # Run entrypoint
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]