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