"feat: add mobile app support with Dockerfile and dev/build scripts, update all projects to use psmisc for process management"
This commit is contained in:
17
03_source/mobile/dockerfile
Normal file
17
03_source/mobile/dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
# Use official Node 18 base image
|
||||
FROM node:20-slim
|
||||
|
||||
# Install pnpm globally
|
||||
# RUN npm install -g pnpm
|
||||
RUN apt update
|
||||
RUN apt-get install -qqy psmisc
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy your application code (optional, comment out if not needed)
|
||||
# COPY . /app
|
||||
# RUN yarn
|
||||
|
||||
# Default command (optional)
|
||||
CMD ["npm run start"]
|
@@ -7,6 +7,9 @@ clear
|
||||
while true; do
|
||||
npm run dev
|
||||
|
||||
killall node
|
||||
killall yarn
|
||||
|
||||
echo "restarting..."
|
||||
sleep 1
|
||||
done
|
||||
|
@@ -2,10 +2,12 @@
|
||||
|
||||
set -x
|
||||
|
||||
npm i -D
|
||||
|
||||
killall node
|
||||
killall yarn
|
||||
rm -rf ./**/*Zone.Identifier
|
||||
|
||||
npm i -D
|
||||
|
||||
set -ex
|
||||
|
||||
npm run format
|
||||
|
Reference in New Issue
Block a user