Spaces:
Paused
Paused
Update Dockerfile
Browse files1234567891011121314# Use official Python image as baseFROM python:3.9-slim# Set the working directoryWORKDIR /app# Copy the application files into the containerCOPY . /app# Install dependenciesRUN pip install --no-cache-dir -r requirements.txt# Set the command to run the appCMD ["python", "app.py"]1234567891011121314151617181920212223242526272829# Use Docker's official DinD imageFROM docker:20.10.7-dind# Set the environment variables for DockerENV DOCKER_TLS_CERTDIR=/certs# Create the necessary directoriesRUN mkdir -p /certs/client# Install any additional packages or dependenciesRUN apk add --no-cache \bash \curl \git \&& rm -rf /var/cache/apk/*# Set permissions to ensure Docker can operate properly inside the container# This grants Docker the necessary permissions to run as expected.RUN chmod 666 /var/run/docker.sock \&& chown root:root /var/run/docker.sock# Expose the Docker socket to enable communication with Docker daemonVOLUME /var/run/docker.sock:/var/run/docker.sock# Set up the entrypointENTRYPOINT ["dockerd-entrypoint.sh"]# Start the Docker daemonCMD ["dockerd"]
Dockerfile+25-10