forked from Yara724/api
ci(deployment): build the maintenance api on parspack
Compile NestJS on Parspack and deploy the commit-tagged image from the existing API directory.
This commit is contained in:
+3
-1
@@ -17,8 +17,10 @@ RUN npm i --force --verbose --no-scripts
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build && test -f dist/src/main.js
|
||||
|
||||
# Expose the port on which your NestJS application will run
|
||||
EXPOSE 3002
|
||||
|
||||
# Start the NestJS application
|
||||
CMD ["npm", "start"]
|
||||
CMD ["node", "dist/src/main.js"]
|
||||
|
||||
Reference in New Issue
Block a user