Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Park committed Nov 29, 2024
1 parent 239dcac commit a8ff2ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
**
!requirements.txt
!es_test_data.py
!search_test.py
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ RUN pip install --ignore-installed --no-warn-script-location --prefix="/dist" -r

WORKDIR /dist/

COPY es_test_data.py .
COPY modules ./modules/
COPY search_test.py .

# For debugging the Build Stage
CMD ["bash"]
Expand Down Expand Up @@ -79,4 +80,4 @@ USER "$APP_USER_NAME"
COPY --from=build --chown="$APP_USER_NAME":"$APP_GROUP_ID" /dist/ "$PYTHONUSERBASE"/

# Use ENTRYPOINT instead CMD to force the container to start the application
ENTRYPOINT ["python", "es_test_data.py"]
ENTRYPOINT ["python", "search_test.py"]

0 comments on commit a8ff2ea

Please sign in to comment.