From 06c08ef93b6dd8a55dc920af60df1a6762383ff8 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Sun, 10 Dec 2023 16:57:07 +0100 Subject: [PATCH] Tru different definition --- captain-definition | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/captain-definition b/captain-definition index 27de96f..1e3552b 100644 --- a/captain-definition +++ b/captain-definition @@ -1,4 +1,14 @@ { - "schemaVersion": 2, - "templateId": "node/19" -} \ No newline at end of file + "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 && npm run build", + "ENV NODE_ENV production", + "ENV PORT 80", + "EXPOSE 80", + "CMD [ \"npm\", \"start\" ]" + ] +}