still testing
This commit is contained in:
@@ -6,6 +6,7 @@ RUN apt-get update && apt-get install -y \
|
||||
libpq-dev \
|
||||
curl \
|
||||
netcat-traditional \
|
||||
dos2unix \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Create a non-root user
|
||||
@@ -16,7 +17,8 @@ WORKDIR /app
|
||||
|
||||
# Copy start.sh first and set permissions
|
||||
COPY start.sh .
|
||||
RUN chmod +x start.sh
|
||||
RUN dos2unix start.sh && \
|
||||
chmod +x start.sh
|
||||
|
||||
# Copy requirements first to leverage Docker cache
|
||||
COPY requirements.txt .
|
||||
@@ -32,5 +34,5 @@ RUN mkdir -p /app/uploads /app/static/uploads && \
|
||||
# Switch to non-root user
|
||||
USER celery
|
||||
|
||||
# Set entrypoint
|
||||
ENTRYPOINT ["./start.sh"]
|
||||
# Set entrypoint using shell form
|
||||
ENTRYPOINT ./start.sh
|
||||
Reference in New Issue
Block a user