mirror of
https://github.com/wolfswolke/DeathGarden_API_Rebirth.git
synced 2026-03-21 17:54:09 -05:00
Changed things around in Dockerfile for CACHING
This commit is contained in:
parent
33eb185227
commit
1cbaa4a1ac
14
Dockerfile
14
Dockerfile
|
|
@ -1,12 +1,18 @@
|
|||
FROM python:3.13.0a6-alpine3.18
|
||||
|
||||
RUN apk upgrade && apk add curl
|
||||
|
||||
# copying each folder one by one so docker can cache the layers
|
||||
#COPY . /app
|
||||
RUN mkdir -p /app/
|
||||
RUN mkdir -p /app/src
|
||||
RUN mkdir -p /app/src/logic
|
||||
|
||||
WORKDIR /app/src
|
||||
|
||||
COPY requirements.txt /app/src/requirements.txt
|
||||
RUN pip install -r requirements.txt
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
COPY src/start_app.py /app/src/start_app.py
|
||||
COPY src/flask_definitions.py /app/src/flask_definitions.py
|
||||
|
||||
|
|
@ -40,12 +46,6 @@ COPY src/logic/setup_handlers.py /app/src/logic/setup_handlers.py
|
|||
COPY src/logic/time_handler.py /app/src/logic/time_handler.py
|
||||
COPY src/logic/webhook_handler.py /app/src/logic/webhook_handler.py
|
||||
|
||||
COPY requirements.txt /app/src/requirements.txt
|
||||
|
||||
WORKDIR /app/src
|
||||
|
||||
RUN pip install --upgrade pip && pip install -r requirements.txt
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
HEALTHCHECK CMD curl --fail http://localhost:8080/api/v1/healthcheck
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user