Skip to content

Commit a07a72c

Browse files
updated dockerfile
1 parent 2792398 commit a07a72c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,14 @@ RUN CHROME_PATH=$(find /root/.cache/puppeteer -name chrome -type f | head -n 1)
6969

7070
COPY dist/ liascript-exporter/
7171

72-
EXPOSE 4000
73-
7472
# Create entrypoint script that sources the environment
7573
RUN echo '#!/bin/sh\n\
7674
export PUPPETEER_EXECUTABLE_PATH=$(find /root/.cache/puppeteer -name chrome -type f | head -n 1)\n\
7775
exec node liascript-exporter/index.js "$@"' > /entrypoint.sh && \
7876
chmod +x /entrypoint.sh
7977

78+
EXPOSE 4000
79+
8080
ENTRYPOINT ["/entrypoint.sh"]
81+
8182
CMD ["serve", "--port", "4000"]

0 commit comments

Comments
 (0)