firs scratches
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -7,6 +7,8 @@ WORKDIR /app
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
gosu \
|
||||
redis-server \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -22,5 +24,11 @@ COPY . .
|
||||
# Create necessary directories
|
||||
RUN mkdir -p downloads config creds
|
||||
|
||||
# Default command (overridden in docker-compose.yml)
|
||||
CMD ["python", "app.py"]
|
||||
# Make entrypoint script executable
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
# Set entrypoint to our script
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
|
||||
# Default command (empty as entrypoint will handle the default behavior)
|
||||
CMD []
|
||||
|
||||
Reference in New Issue
Block a user