모든 버그 해결
This commit is contained in:
parent
be4d6616f0
commit
e19aa64c8f
14 changed files with 96 additions and 31 deletions
35
.devcontainer/Dockerfile
Normal file
35
.devcontainer/Dockerfile
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
FROM python:3.12
|
||||
|
||||
RUN sed -i 's@deb.debian.org@ftp.kaist.ac.kr@g' /etc/apt/sources.list.d/debian.sources
|
||||
|
||||
# Setup Crontab
|
||||
|
||||
WORKDIR /code
|
||||
COPY crontab /code/crontab
|
||||
COPY requirements.txt /code/requirements.txt
|
||||
COPY .env /code/.env
|
||||
COPY app /code/app
|
||||
|
||||
RUN apt update && apt -y install tzdata && \
|
||||
ln -fs /usr/share/zoneinfo/Asia/Seoul /etc/localtime && \
|
||||
dpkg-reconfigure --frontend noninteractive tzdata && \
|
||||
apt update && apt -y install cron
|
||||
|
||||
COPY crontab /etc/cron.d/crontab
|
||||
RUN chmod 0644 /etc/cron.d/crontab
|
||||
RUN echo "" >> /etc/cron.d/crontab # Ensure newline at end of file
|
||||
RUN /usr/bin/crontab /etc/cron.d/crontab
|
||||
|
||||
# Setup Environment Variables
|
||||
|
||||
RUN export $(cat .env | xargs)
|
||||
|
||||
# Setup Python Environment
|
||||
WORKDIR /code
|
||||
RUN pip config set global.break-system-packages true
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
RUN rm -rf /etc/localtime
|
||||
RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
|
||||
|
||||
CMD ["cron", "-f"]
|
||||
6
.devcontainer/devcontainer.json
Normal file
6
.devcontainer/devcontainer.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile",
|
||||
"context": ".."
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue