This commit is contained in:
Noxcis 2023-12-30 16:45:28 -08:00
parent 043c6a87f6
commit f1b89ed4bc
2 changed files with 5 additions and 7 deletions

View File

@ -14,12 +14,6 @@ RUN apk update \
&& yarn cache clean \
&& yarn autoclean --force
# Stage 2: Production Stage
FROM node:alpine3.19
@ -32,4 +26,8 @@ RUN apk add --no-cache nginx openssl && \
chmod +x /home/node/start.sh
STOPSIGNAL SIGINT
HEALTHCHECK --interval=30s --timeout=30s --start-period=10s --retries=3 \
CMD [ "curl", "-f", "${VITE_API_PROTOCOL}://localhost:${VITE_API_PORT}", "||", "exit", "1" ]
CMD ["/home/node/start.sh"]

View File

@ -19,7 +19,7 @@ VITE_MAX_FILE_SIZE=$VITE_MAX_FILE_SIZE
" > client/.env
echo"
echo "
CLIENT_DIST_DIRECTORY='client/dist/'
ROOM_HASH_SECRET=$ROOM_HASH_SECRET