Skip to content

Commit

Permalink
feat: add publish command to generate prod conf before starting
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Jan 27, 2024
1 parent 851b990 commit 317520f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ WORKDIR /app
COPY . .

RUN npm install
RUN npm run generate-config
RUN npm run build

EXPOSE 6090

CMD ["npm", "run", "start"]
CMD ["npm", "run", "publish"]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build": "vite build",
"preview": "vite preview",
"generate-config": "node generate-config.js",
"start": "node server.js"
"start": "node server.js",
"publish": "npm run generate-config && npm run start"
},
"dependencies": {
"@babel/types": "^7.22.5",
Expand Down

0 comments on commit 317520f

Please sign in to comment.