From eff0774bec78dc6493d1bcba16e078d31bab5edf Mon Sep 17 00:00:00 2001 From: arisnguyenit97 Date: Sun, 24 Mar 2024 10:37:49 +0700 Subject: [PATCH] :wrench: chore: update file dockerfile #2 --- Dockerfile | 3 ++- Makefile | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4be28d7..2524c5a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ WORKDIR /ins-crawler-container # Copy the requirements file into the container at /app COPY requirements.txt /ins-crawler-container/ +COPY Makefile /ins-crawler-container/ # Install any dependencies RUN pip3 install --no-cache-dir -r requirements.txt @@ -17,4 +18,4 @@ RUN pip3 install --no-cache-dir -r requirements.txt COPY . /ins-crawler-container/ # Run the main.py script -CMD ["python3", "main.py"] +CMD ["python3 ", "main.py"] diff --git a/Makefile b/Makefile index e8a7e5f..2569f63 100644 --- a/Makefile +++ b/Makefile @@ -12,5 +12,7 @@ docker-up: docker-compose up local: python3 main.py ./config/logger.local.yaml ./config/application.local.yaml $(username) +prod: + python3 main.py ./config/logger.yaml ./config/application.yaml $(username) try: ./try.sh \ No newline at end of file