Copy
This commit is contained in:
parent
dc18b65b5f
commit
be4d6616f0
1 changed files with 6 additions and 3 deletions
|
|
@ -5,6 +5,11 @@ RUN sed -i 's@deb.debian.org@ftp.kaist.ac.kr@g' /etc/apt/sources.list.d/debian.s
|
||||||
# Setup Crontab
|
# Setup Crontab
|
||||||
|
|
||||||
WORKDIR /code
|
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 cron
|
RUN apt update && apt -y install cron
|
||||||
|
|
||||||
COPY crontab /etc/cron.d/crontab
|
COPY crontab /etc/cron.d/crontab
|
||||||
|
|
@ -16,10 +21,8 @@ RUN /usr/bin/crontab /etc/cron.d/crontab
|
||||||
|
|
||||||
RUN export $(cat .env | xargs)
|
RUN export $(cat .env | xargs)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Setup Python Environment
|
# Setup Python Environment
|
||||||
WORKDIR /code/app
|
WORKDIR /code
|
||||||
RUN pip config set global.break-system-packages true
|
RUN pip config set global.break-system-packages true
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue