From a084c142a9d73d002f037c520999b5a3117d4703 Mon Sep 17 00:00:00 2001 From: Vishal Hirawat Date: Wed, 17 Apr 2024 20:16:16 +0530 Subject: [PATCH] added captain definition file --- captain-definition | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 captain-definition diff --git a/captain-definition b/captain-definition new file mode 100644 index 0000000..efe6efc --- /dev/null +++ b/captain-definition @@ -0,0 +1,14 @@ +{ +"schemaVersion": 2, +"dockerfileLines": [ + "FROM node:20-alpine", + "RUN mkdir -p /usr/src/app", + "WORKDIR /usr/src/app", + "COPY . /usr/src/app", + "RUN npm install && npm cache clean --force", + "ENV NODE_ENV production", + "ENV PORT 8000", + "EXPOSE 8000", + "CMD [ \"node\", \"app.js\" ]" + ] +} \ No newline at end of file