From 94c46143a9ffe180f551b0f70135190250974cac Mon Sep 17 00:00:00 2001 From: root Date: Mon, 3 Feb 2025 06:45:48 -0500 Subject: [PATCH] Docker working --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8af30c0..b5fa5a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,13 @@ COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt # Copy in the source code -COPY src ./src +COPY . . EXPOSE 5000 # Setup an app user so the container doesn't run as the root user RUN useradd app USER app -CMD ["flask", "--app", "build", "run"] +CMD ["cd", "/usr/local/app"] +CMD "ls" +CMD ["flask", "--app", "build", "run", "--host=0.0.0.0"]]