chore(nx/docker): basic integration

This commit is contained in:
Elian Doran
2025-04-25 09:54:10 +03:00
parent 12977f145c
commit 0e8b1f31b3
4 changed files with 25 additions and 26 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM node:22.14.0-alpine
# Install runtime dependencies
RUN apk add --no-cache su-exec shadow
WORKDIR /usr/src/app
COPY /apps/server/dist /usr/src/app
COPY /apps/server/start-docker.sh /usr/src/app
# Add application user
RUN adduser -s /bin/false node; exit 0
# Configure container
EXPOSE 8080
CMD [ "sh", "./start-docker.sh" ]
HEALTHCHECK --start-period=10s CMD exec su-exec node node docker_healthcheck.js