3 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
+4 -3
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
WORKDIR /app
@@ -10,7 +10,7 @@ COPY ./src/package.json ./
RUN npm install
# Copy source
COPY ./src ./src
COPY ./src ./
# Create replied_ids.json
RUN touch replied_ids.json
@@ -20,7 +20,8 @@ COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Change line break
RUN find /entrypoint.sh /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 entrypoint
ENTRYPOINT ["/entrypoint.sh"]