Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
FROM node:21-alpine
WORKDIR /home/node/app/rems-directory

ARG SERVER_PORT
ENV SERVER_PORT=$SERVER_PORT

ARG SERVER_HOST
ENV SERVER_HOST=$SERVER_HOST

COPY --chown=node:node . .
RUN npm install
EXPOSE 3323

HEALTHCHECK --interval=30s --start-period=15s --timeout=10m --retries=10 CMD wget --no-verbose --tries=1 --spider http://localhost:33333/health || exit 1
HEALTHCHECK --interval=30s --start-period=15s --timeout=10m --retries=10 CMD wget --no-verbose --tries=1 --spider http://${SERVER_HOST}:${SERVER_PORT}/health || exit 1
CMD npm run dev
8 changes: 7 additions & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
FROM node:21-alpine
WORKDIR /home/node/app/rems-directory

ARG SERVER_PORT
ENV SERVER_PORT=$SERVER_PORT

ARG SERVER_HOST
ENV SERVER_HOST=$SERVER_HOST

COPY --chown=node:node . .
RUN npm install
EXPOSE 3323
EXPOSE 3324

HEALTHCHECK --interval=30s --start-period=15s --timeout=10m --retries=10 CMD wget --no-verbose --tries=1 --spider http://localhost:33333/health || exit 1
HEALTHCHECK --interval=30s --start-period=15s --timeout=10m --retries=10 CMD wget --no-verbose --tries=1 --spider http://${SERVER_HOST}:${SERVER_PORT}/health || exit 1
CMD ./dockerRunnerDev.sh