updated whit entrypoint

This commit is contained in:
2025-05-28 21:08:09 +03:00
parent 87a9c77ee0
commit 2e94a334de
3 changed files with 19 additions and 7 deletions

View File

@@ -15,6 +15,10 @@ RUN rustc --version && cargo --version
# Copy application files
COPY . /app
# Copy entrypoint script and make it executable
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Upgrade pip and install Python dependencies (using piwheels for ARM)
RUN python -m pip install --upgrade pip && \
pip install --no-cache-dir --extra-index-url https://www.piwheels.org/simple -r requirements.txt
@@ -22,5 +26,5 @@ RUN python -m pip install --upgrade pip && \
# Expose the application port
EXPOSE 5000
# Start the application
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "app:app"]
# Use entrypoint script
ENTRYPOINT ["/entrypoint.sh"]