updated whit entrypoint
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user