mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
18 lines
289 B
Docker
18 lines
289 B
Docker
FROM node:20-alpine
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy the entire sim directory
|
|
COPY sim/ ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Generate database schema
|
|
RUN npx drizzle-kit generate
|
|
|
|
EXPOSE 3000
|
|
|
|
# Run migrations and start the app
|
|
CMD npx drizzle-kit push && npm run dev |