GH issue template, docker cache fix, remove docker client entrypoint
This commit is contained in:
@@ -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" ]
|
||||
|
||||
@@ -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 "$@"
|
||||
Reference in New Issue
Block a user