prompt
stringlengths
141
161
completion
stringlengths
398
538
Generate a Dockerfile for 'python_version': '3.11.9', 'type_of_application': 'Streamlit', 'work_directory': './', 'entrypoint_filename': 'checkreq.py'
# Use an official Python runtime as a parent image FROM python:3.11.9-slim # Set the working directory in the container WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Make port 8501 available to the world outside this container EXPOSE 8501 # Run checkreq.py when the container launches CMD ["streamlit", "run", "checkreq.py", "--server.port=8501", "--server.address=0.0.0.0"]
Generate a Dockerfile for 'python_version': '3.10.8', 'type_of_application': 'Flask', 'work_directory': '/src', 'entrypoint_filename': 'app.py'
# Use an official Python runtime as a parent image FROM python:3.10.8-slim # Set the working directory in the container WORKDIR /src # Copy the current directory contents into the container at /src COPY . /src # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 5000 EXPOSE 5000 # Define entrypoint CMD ["python", "app.py"]
Generate a Dockerfile for 'python_version': '3.9', 'type_of_application': 'Django', 'work_directory': '/app', 'entrypoint_filename': 'manage.py'
# Use an official Python runtime as a parent image FROM python:3.9-slim # Set the working directory in the container WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 8000 EXPOSE 8000 # Define entrypoint CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
Generate a Dockerfile for 'python_version': '3.8', 'type_of_application': 'FastAPI', 'work_directory': '/app', 'entrypoint_filename': 'main.py'
# Use an official Python runtime as a parent image FROM python:3.8-slim # Set the working directory in the container WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 8000 EXPOSE 8000 # Define entrypoint CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
Generate a Dockerfile for 'python_version': '3.7', 'type_of_application': 'Dash', 'work_directory': '/project', 'entrypoint_filename': 'app.py'
# Use an official Python runtime as a parent image FROM python:3.7-slim # Set the working directory in the container WORKDIR /project # Copy the current directory contents into the container at /project COPY . /project # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 8050 EXPOSE 8050 # Define entrypoint CMD ["python", "app.py"]
Generate a Dockerfile for 'python_version': '3.6', 'type_of_application': 'Pyramid', 'work_directory': '/src', 'entrypoint_filename': 'main.py'
# Use an official Python runtime as a parent image FROM python:3.6-slim # Set the working directory in the container WORKDIR /src # Copy the current directory contents into the container at /src COPY . /src # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 6543 EXPOSE 6543 # Define entrypoint CMD ["python", "main.py"]
Generate a Dockerfile for 'python_version': '3.10', 'type_of_application': 'Quart', 'work_directory': '/app', 'entrypoint_filename': 'main.py'
# Use an official Python runtime as a parent image FROM python:3.10-slim # Set the working directory in the container WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 5000 EXPOSE 5000 # Define entrypoint CMD ["python", "main.py"]
Generate a Dockerfile for 'python_version': '3.8', 'type_of_application': 'Flask', 'work_directory': '/app', 'entrypoint_filename': 'server.py'
# Use an official Python runtime as a parent image FROM python:3.8-slim # Set the working directory in the container WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 5000 EXPOSE 5000 # Define entrypoint CMD ["python", "server.py"]
Generate a Dockerfile for 'python_version': '3.9', 'type_of_application': 'Streamlit', 'work_directory': '/code', 'entrypoint_filename': 'dashboard.py'
# Use an official Python runtime as a parent image FROM python:3.9-slim # Set the working directory in the container WORKDIR /code # Copy the current directory contents into the container at /code COPY . /code # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Make port 8501 available to the world outside this container EXPOSE 8501 # Run dashboard.py when the container launches CMD ["streamlit", "run", "dashboard.py", "--server.port=8501", "--server.address=0.0.0.0"]
Generate a Dockerfile for 'python_version': '3.11', 'type_of_application': 'FastAPI', 'work_directory': './service', 'entrypoint_filename': 'api.py'
# Use an official Python runtime as a parent image FROM python:3.11-slim # Set the working directory in the container WORKDIR /service # Copy the current directory contents into the container at /service COPY . /service # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 8000 EXPOSE 8000 # Define entrypoint CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
Generate a Dockerfile for 'python_version': '3.11.9', 'type_of_application': 'Flask', 'work_directory': './src', 'entrypoint_filename': 'start.py'
# Use an official Python runtime as a parent image FROM python:3.11.9-slim # Set the working directory in the container WORKDIR /src # Copy the current directory contents into the container at /src COPY . /src # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 5000 EXPOSE 5000 # Define entrypoint CMD ["python", "start.py"]
Generate a Dockerfile for 'python_version': '3.7', 'type_of_application': 'Django', 'work_directory': '/myapp', 'entrypoint_filename': 'manage.py'
# Use an official Python runtime as a parent image FROM python:3.7-slim # Set the working directory in the container WORKDIR /myapp # Copy the current directory contents into the container at /myapp COPY . /myapp # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 8000 EXPOSE 8000 # Define entrypoint CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
Generate a Dockerfile for 'python_version': '3.10', 'type_of_application': 'Dash', 'work_directory': '/project', 'entrypoint_filename': 'dashboard.py'
# Use an official Python runtime as a parent image FROM python:3.10-slim # Set the working directory in the container WORKDIR /project # Copy the current directory contents into the container at /project COPY . /project # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 8050 EXPOSE 8050 # Define entrypoint CMD ["python", "dashboard.py"]
Generate a Dockerfile for 'python_version': '3.9', 'type_of_application': 'FastAPI', 'work_directory': '/app', 'entrypoint_filename': 'api.py'
# Use an official Python runtime as a parent image FROM python:3.9-slim # Set the working directory in the container WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 8000 EXPOSE 8000 # Define entrypoint CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
Generate a Dockerfile for 'python_version': '3.6', 'type_of_application': 'Flask', 'work_directory': '/code', 'entrypoint_filename': 'run.py'
# Use an official Python runtime as a parent image FROM python:3.6-slim # Set the working directory in the container WORKDIR /code # Copy the current directory contents into the container at /code COPY . /code # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 5000 EXPOSE 5000 # Define entrypoint CMD ["python", "run.py"]
Generate a Dockerfile for 'python_version': '3.9', 'type_of_application': 'Streamlit', 'work_directory': '/dashboard', 'entrypoint_filename': 'main_dashboard.py'
# Use an official Python runtime as a parent image FROM python:3.9-slim # Set the working directory in the container WORKDIR /dashboard # Copy the current directory contents into the container at /dashboard COPY . /dashboard # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 8501 EXPOSE 8501 # Define entrypoint CMD ["streamlit", "run", "main_dashboard.py", "--server.port=8501", "--server.address=0.0.0.0"]
Generate a Dockerfile for 'python_version': '3.11', 'type_of_application': 'FastAPI', 'work_directory': '/src', 'entrypoint_filename': 'service.py'
# Use an official Python runtime as a parent image FROM python:3.11-slim # Set the working directory in the container WORKDIR /src # Copy the current directory contents into the container at /src COPY . /src # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 8000 EXPOSE 8000 # Define entrypoint CMD ["uvicorn", "service:app", "--host", "0.0.0.0", "--port", "8000"]
Generate a Dockerfile for 'python_version': '3.8', 'type_of_application': 'Flask', 'work_directory': '/src', 'entrypoint_filename': 'main.py'
# Use an official Python runtime as a parent image FROM python:3.8-slim # Set the working directory in the container WORKDIR /src # Copy the current directory contents into the container at /src COPY . /src # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 5000 EXPOSE 5000 # Define entrypoint CMD ["python", "main.py"]
Generate a Dockerfile for 'python_version': '3.9', 'type_of_application': 'Django', 'work_directory': '/webapp', 'entrypoint_filename': 'manage.py'
# Use an official Python runtime as a parent image FROM python:3.9-slim # Set the working directory in the container WORKDIR /webapp # Copy the current directory contents into the container at /webapp COPY . /webapp # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 8000 EXPOSE 8000 # Define entrypoint CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
Generate a Dockerfile for 'python_version': '3.10', 'type_of_application': 'Dash', 'work_directory': '/project', 'entrypoint_filename': 'dashboard.py'
# Use an official Python runtime as a parent image FROM python:3.10-slim # Set the working directory in the container WORKDIR /project # Copy the current directory contents into the container at /project COPY . /project # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 8050 EXPOSE 8050 # Define entrypoint CMD ["python", "dashboard.py"]
Generate a Dockerfile for 'python_version': '3.11', 'type_of_application': 'FastAPI', 'work_directory': '/api', 'entrypoint_filename': 'api.py'
# Use an official Python runtime as a parent image FROM python:3.11-slim # Set the working directory in the container WORKDIR /api # Copy the current directory contents into the container at /api COPY . /api # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 8000 EXPOSE 8000 # Define entrypoint CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
Generate a Dockerfile for 'python_version': '3.7', 'type_of_application': 'Pyramid', 'work_directory': '/srv', 'entrypoint_filename': 'app.py'
# Use an official Python runtime as a parent image FROM python:3.7-slim # Set the working directory in the container WORKDIR /srv # Copy the current directory contents into the container at /srv COPY . /srv # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 6543 EXPOSE 6543 # Define entrypoint CMD ["python", "app.py"]
Generate a Dockerfile for 'python_version': '3.6', 'type_of_application': 'Quart', 'work_directory': '/app', 'entrypoint_filename': 'server.py'
# Use an official Python runtime as a parent image FROM python:3.6-slim # Set the working directory in the container WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 5000 EXPOSE 5000 # Define entrypoint CMD ["python", "server.py"]
Generate a Dockerfile for 'python_version': '3.9', 'type_of_application': 'Streamlit', 'work_directory': '/dashboard', 'entrypoint_filename': 'app_streamlit.py'
# Use an official Python runtime as a parent image FROM python:3.9-slim # Set the working directory in the container WORKDIR /dashboard # Copy the current directory contents into the container at /dashboard COPY . /dashboard # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt # Expose port 8501 EXPOSE 8501 # Define entrypoint CMD ["streamlit", "run", "app_streamlit.py", "--server.port=8501", "--server.address=0.0.0.0"]