Skip to content

Commit

Permalink
refine Docker start
Browse files Browse the repository at this point in the history
  • Loading branch information
craigrbarnes committed Apr 11, 2024
1 parent adb5278 commit 452e48b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ RUN npm install \
"@swc/core" \
"@napi-rs/magic-string"
RUN npm run build
ENV PORT=80
CMD bash ./start.sh
ENV PORT=3000
CMD ["npm", "run", "start"]
4 changes: 1 addition & 3 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/bin/bash

set -e
export PORT=3000
echo "npm run start"
npm run start
echo "starting server"

0 comments on commit 452e48b

Please sign in to comment.