From 0a60b711b91145b085284320b29c7c218eaffceb Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Wed, 10 Jul 2024 20:06:58 +0200 Subject: [PATCH] test --- captain-definition | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/captain-definition b/captain-definition index 6db9737..d5cdef8 100644 --- a/captain-definition +++ b/captain-definition @@ -1,4 +1,14 @@ { - "schemaVersion" :2 , - "templateId" :"node/22.4.1" + "schemaVersion": 2, + "dockerfileLines": [ + "FROM node:22.4.1-alpine", + "RUN mkdir -p /usr/src/app", + "WORKDIR /usr/src/app", + "COPY ./ /usr/src/app", + "RUN npm install && npm cache clean --force && npm run build", + "ENV ENV production", + "ENV PORT 4000", + "EXPOSE 4000", + "CMD [ \"npm\", \"start\" ]" + ] } \ No newline at end of file