build: retain tests directory in Docker image.

oh_security
Cizz22 4 months ago committed by TAMDeveloper13
parent 71c62b6b3c
commit 914eacb16a

@ -26,8 +26,6 @@ ENV POETRY_VIRTUALENVS_IN_PROJECT=1 \
COPY --from=builder /app/.venv /app/.venv COPY --from=builder /app/.venv /app/.venv
# Copy application files # Copy application files
COPY . /app/ COPY . /app/
# Delete Tests for production
RUN rm -rf /app/tests/
# Add custom configuration to root's .bashrc including password protection # Add custom configuration to root's .bashrc including password protection
RUN echo "# Custom configurations added by Dockerfile" >> /root/.bashrc && \ RUN echo "# Custom configurations added by Dockerfile" >> /root/.bashrc && \

Loading…
Cancel
Save