today.isangjeong/Dockerfile
imnyang f889e36ac2 Lo
2025-05-09 21:02:12 +09:00

30 lines
729 B
Docker

FROM oven/bun:alpine
LABEL maintainer="@imnya"
# Set timezone to Asia/Seoul
RUN apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime \
&& echo "Asia/Seoul" > /etc/timezone \
&& apk del tzdata
# 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
# Cron job
RUN apk add --no-cache curl
RUN curl -Lo /code/app/supercronic https://github.com/aptible/supercronic/releases/latest/download/supercronic-linux-amd64 \
&& chmod +x /code/app/supercronic
COPY cron /code/app/cron
RUN chmod +x /code/app/cron
CMD ["/code/app/supercronic", "/code/app/cron"]