Refactor Scraper Dockerfile and Remove Entrypoint Script

- Removed the entrypoint.sh script from the scraper Dockerfile to streamline the build process.
- Updated the Dockerfile to directly set the ENTRYPOINT to the scraper build executable, simplifying the container startup.
- This change enhances maintainability by reducing the number of files and improving clarity in the Docker configuration.
This commit is contained in:
Nima Nakhostin
2025-11-23 14:20:01 +03:30
parent 10fd53af41
commit c8efa2c068
2 changed files with 1 additions and 14 deletions
+1 -5
View File
@@ -17,10 +17,6 @@ WORKDIR /app
COPY --from=go-builder /app/scraper-build .
# Copy and set up entrypoint script
COPY cmd/scraper/entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
EXPOSE 80
ENTRYPOINT ["/app/entrypoint.sh"]
ENTRYPOINT /app/scraper-build