added test mode and adapted for docker
This commit is contained in:
+4
-7
@@ -2,17 +2,14 @@ FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
RUN apt-get update && apt-get install -y git
|
||||
|
||||
RUN git clone https://git.marlow.quest/ash/Garmin-API.git
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy app
|
||||
COPY app.py .
|
||||
COPY logo.bin .
|
||||
|
||||
# Expose port
|
||||
EXPOSE 5000
|
||||
|
||||
# Run app
|
||||
RUN pip install gunicorn
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]
|
||||
|
||||
Reference in New Issue
Block a user