config 정상화 해줬잖아

This commit is contained in:
imnyang 2024-11-06 23:01:10 +09:00
commit 40fe3adb7c
2 changed files with 1 additions and 6 deletions

View file

@ -7,7 +7,6 @@ RUN sed -i 's@deb.debian.org@ftp.kaist.ac.kr@g' /etc/apt/sources.list.d/debian.s
WORKDIR /code WORKDIR /code
COPY crontab /code/crontab COPY crontab /code/crontab
COPY requirements.txt /code/requirements.txt COPY requirements.txt /code/requirements.txt
COPY .env /code/.env
COPY app /code/app COPY app /code/app
RUN apt update && apt -y install tzdata && \ RUN apt update && apt -y install tzdata && \
@ -20,10 +19,6 @@ RUN chmod 0644 /etc/cron.d/crontab
RUN echo "" >> /etc/cron.d/crontab # Ensure newline at end of file RUN echo "" >> /etc/cron.d/crontab # Ensure newline at end of file
RUN /usr/bin/crontab /etc/cron.d/crontab RUN /usr/bin/crontab /etc/cron.d/crontab
# Setup Environment Variables
RUN export $(cat .env | xargs)
# Setup Python Environment # Setup Python Environment
WORKDIR /code WORKDIR /code
RUN pip config set global.break-system-packages true RUN pip config set global.break-system-packages true

View file

@ -10,6 +10,6 @@
**이 프로젝트는 백업을 위한 레포로 친절하게 문서를 쓸 생각이 없습니다.** **이 프로젝트는 백업을 위한 레포로 친절하게 문서를 쓸 생각이 없습니다.**
`docker build --tag today-isangjeong:latest .` `docker build --no-cache --tag today-isangjeong:latest .`
`docker run -d -v /data/hdd/today.isanjeong-docker:/code/app/temp --name today-isangjeong today-isangjeong:latest` `docker run -d -v /data/hdd/today.isanjeong-docker:/code/app/temp --name today-isangjeong today-isangjeong:latest`