Spaces:
Sleeping
Sleeping
File size: 637 Bytes
991028b c483939 991028b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# 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"] |