ecommerceapp / Dockerfile
hbhamzabaig's picture
Update Dockerfile
dd35199 verified
raw
history blame contribute delete
420 Bytes
# Use Python 3.9 as the base image
FROM python:3.10
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container
COPY requirements.txt .
# Install the dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application into the container
COPY . .
# Expose the application port
EXPOSE 5000
# Run the application
CMD ["python", "app.py"]