GH issue template, docker cache fix, remove docker client entrypoint

This commit is contained in:
Julien Nahum
2024-09-04 11:19:03 +02:00
parent 01c0f5b6ce
commit 7aafc5cab3
5 changed files with 79 additions and 24 deletions

View File

@@ -26,8 +26,5 @@ FROM node:20-alpine
WORKDIR /app
COPY --from=javascript-builder /app/.output/ /app/
RUN ls /app/
ADD ./docker/node-entrypoint /entrypoint.sh
RUN chmod a+x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "node", "./server/index.mjs" ]

View File

@@ -1,21 +0,0 @@
#!/bin/sh
main() {
if [ "$1" = "bash" ]; then
"$@"
else
if [ -f .env ]; then
. .env
else
echo "Warning: .env file not found"
fi
run_server "$@"
fi
}
run_server() {
echo "Running node $@"
"$@"
}
main "$@"