Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaAburaneh committed Jan 22, 2024
1 parent 43861a5 commit dd366d0
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions docker/both/Dockerfile
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" ]

0 comments on commit dd366d0

Please sign in to comment.