diff --git a/Dockerfile.cron b/Dockerfile.cron index 2741c6b..34e8a55 100644 --- a/Dockerfile.cron +++ b/Dockerfile.cron @@ -2,25 +2,27 @@ FROM golang:1.23-bookworm RUN useradd cronuser RUN mkdir -p /app +RUN touch /var/log/cron.log RUN chown -R cronuser /app + WORKDIR /app RUN apt update RUN apt install -y cron rsyslog -COPY --chown=cronuser:cronuser ./crontab_file /etc/cron.d/cron-scraper -RUN crontab -u cronuser /etc/cron.d/cron-scraper -RUN chmod u+s /usr/sbin/cron -COPY --chown=cronuser:cronuser ./cron-startup.sh ./cron-startup.sh +COPY ./crontab_file /etc/cron.d/cron-scraper +RUN chmod 0644 /etc/cron.d/cron-scraper +COPY ./cron-startup.sh ./cron-startup.sh USER cronuser COPY ./swatscraper/go.mod ./swatscraper/go.sum ./ RUN go mod download -COPY --chown=cronuser:cronuser ./scraper.env ./env +COPY --chown=cronuser:cronuser ./scraper.env ./.env COPY --chown=cronuser:cronuser ./swatscraper/*.go ./ RUN GOCACHE=/app/.cache CGO_ENABLED=0 GOOS=linux go build -o /app/swatscraper +USER root ENTRYPOINT ["./cron-startup.sh"] diff --git a/README.md b/README.md index 72972ff..a265aed 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,45 @@ -# Scheduler v2 +
The SCCS Course Planner is an all in one solution for planning your classes at Swarthmore College!
+ +![repo_last_commit] +[![License][repo_license_img]][repo_license_url] +![repo_size] +![build_status] -### Install dependencies +Looking to plan your classes? Visit the live site!
+{eventInfo.event.title}
{item[0]}
++ {item[0]} +
+
Contact your Professor for additional details.