-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43861a5
commit dd366d0
Showing
1 changed file
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
FROM dtobtn/python-ml-base:latest | ||
FROM python:3.8-slim | ||
|
||
# Install any additional system dependencies here if necessary | ||
|
||
# Copy your application files | ||
COPY suggest.py /app/ | ||
COPY client_secret.json /app/ | ||
COPY process_feedback.py /app/ | ||
COPY docker/both/entrypoint.sh /app/ | ||
COPY ./docker/train/crontab /crontab | ||
COPY data/ /app/data/ | ||
COPY ./config/config.ini /app/config/ | ||
|
||
# Install additional Python packages | ||
RUN pip3 install -U gspread \ | ||
oauth2client \ | ||
pyairtable | ||
# Install your Python dependencies | ||
RUN pip install -U gspread oauth2client pyairtable | ||
|
||
# Set up file permissions and cron job | ||
RUN chmod a+x /app/process_feedback.py | ||
COPY docker/both/entrypoint.sh /app/ | ||
RUN chmod a+x /app/entrypoint.sh | ||
RUN crontab /crontab | ||
COPY data/ /app/data/ | ||
RUN mkdir /app/config | ||
COPY ./config/config.ini /app/config/config.ini | ||
WORKDIR /app | ||
|
||
# Set the working directory and Flask environment variable | ||
WORKDIR /app | ||
ENV FLASK_APP=suggest.py | ||
|
||
# Set the entrypoint for the container | ||
ENTRYPOINT [ "/app/entrypoint.sh" ] |