Files
rana-for-docker/Dockerfile
T
2025-12-17 01:22:35 +09:00

26 lines
483 B
Docker

FROM node:24.12.0-alpine3.23
# Set working directory
WORKDIR /app
# Copy package.json
COPY ./src/package.json ./
# Install dependencies
RUN npm install
# Copy source
COPY ./src ./src
# Create replied_ids.json
RUN touch replied_ids.json
# Setup entrypoint
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 entrypoint
ENTRYPOINT ["/entrypoint.sh"]