From 86ed5cf9787e00bb63fcd12d357c65c8eb2b8916 Mon Sep 17 00:00:00 2001 From: alis Date: Fri, 5 Apr 2024 22:59:37 +0100 Subject: [PATCH] Add Dockerfile --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..af7f334 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM node:20-alpine + +COPY ./code /app +COPY ./config /config +RUN mkdir -p /data && \ + apk --no-cache add curl + +HEALTHCHECK CMD curl -f http://localhost:8080/health || exit 1 + +EXPOSE 8080 + +CMD [ "node", "/app/index.js" ] \ No newline at end of file