mirror of
https://github.com/GH05TCREW/pentestagent.git
synced 2026-04-26 17:56:02 +00:00
Moved COPY statement to avoid rebuilding the WEB browser when modifying the source code.
This commit is contained in:
@@ -46,9 +46,6 @@ COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir --upgrade pip && \
|
||||
pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Create non-root user for security
|
||||
RUN useradd -m -s /bin/bash pentestagent && \
|
||||
chown -R pentestagent:pentestagent /app
|
||||
@@ -60,6 +57,8 @@ USER pentestagent
|
||||
|
||||
RUN playwright install
|
||||
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Expose any needed ports
|
||||
EXPOSE 8080
|
||||
|
||||
Reference in New Issue
Block a user