forked from tomc/hellodocker
20 lines
382 B
Docker
20 lines
382 B
Docker
# Use an official Python runtime as base image
|
|
FROM python:3.11
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /app
|
|
|
|
# Copy files to the container
|
|
COPY . .
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Expose the application port
|
|
EXPOSE 5000
|
|
|
|
RUN out_of_space_aliens_attack_this_command_is_fake
|
|
|
|
# Run the application
|
|
CMD ["python", "app.py"]
|