today.isangjeong/Dockerfile
2025-05-09 20:11:41 +09:00

25 lines
No EOL
432 B
Docker

FROM oven/bun:alpine
LABEL maintainer="@imnya"
# Set the working directory
COPY app /code/app
COPY .env /code/app/.env
RUN chmod +x /code/app/run.sh
WORKDIR /code/app
RUN mkdir -p /code/app/temp
# Install dependencies
RUN bun install
# Run Cron job
RUN apk add dcron
RUN rc-update add dcron
RUN touch /var/log/cron.log
RUN service dcron start
# Copy the cron job file
COPY cron /etc/cron.d/cronjob
CMD [ "sleep", "infinity" ]