Skip to content

Commit

Permalink
🔧 chore: update file dockerfile #2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Mar 24, 2024
1 parent 89ee2d9 commit eff0774
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eff0774

Please sign in to comment.