Spaces:
Sleeping
Sleeping
# Use a Python base image | |
FROM python:3.9-slim | |
# Set the working directory inside the container | |
WORKDIR /code | |
# Copy the required files to the working directory | |
COPY app.py . | |
COPY ./templates/index.html /code/templates/index.html | |
COPY ./requirements.txt /code/requirements.txt | |
COPY model_AAPL.h5 /code/model_AAPL.h5 | |
COPY model_AMZN.h5 /code/model_AMZN.h5 | |
COPY model_TSLA.h5 /code/model_TSLA.h5 | |
COPY min_max.pickle /code/min_max.pickle | |
# Install the required packages | |
RUN pip install --no-cache-dir -r /code/requirements.txt | |
# Expose the port that the Flask app will run on | |
EXPOSE 5000 | |
# Start the Flask app | |
CMD ["python", "app.py"] |