move url to compose
This commit is contained in:
+1
-5
@@ -2,14 +2,10 @@ FROM python:3.11-slim
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y git
|
|
||||||
|
|
||||||
RUN git clone https://git.marlow.quest/ash/Garmin-API.git
|
|
||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
RUN pip install gunicorn
|
RUN pip install gunicorn
|
||||||
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]
|
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]
|
||||||
+2
-3
@@ -1,11 +1,10 @@
|
|||||||
services:
|
services:
|
||||||
garmin-api:
|
garmin-api:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: https://git.marlow.quest/ash/Garmin-API.git
|
||||||
dockerfile: Dockerfile
|
|
||||||
container_name: garmin-api
|
container_name: garmin-api
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
Reference in New Issue
Block a user