Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b4f15bbade | |||
| 1e56b35306 | |||
| 37b680c6f5 |
+4
-3
@@ -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
|
||||||
@@ -20,7 +20,8 @@ COPY ./entrypoint.sh /entrypoint.sh
|
|||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|
||||||
# Change line break
|
# 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
|
# Run entrypoint
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
Reference in New Issue
Block a user