mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-10 07:27:57 -05:00
* added turborepo * finished turbo migration * updated gitignore * use dotenv & run format * fixed error in docs * remove standalone deployment in prod * fix ts error, remove ignore ts errors during build * added formatter to the end of the docs generator
24 lines
471 B
Docker
24 lines
471 B
Docker
FROM node:20-alpine
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy the entire monorepo
|
|
COPY . ./
|
|
|
|
# Create the .env file if it doesn't exist
|
|
RUN touch apps/sim/.env
|
|
|
|
# Install dependencies for the monorepo
|
|
RUN npm install
|
|
|
|
# Install Turbo globally
|
|
RUN npm install -g turbo
|
|
|
|
# Generate database schema for sim app
|
|
RUN cd apps/sim && npx drizzle-kit generate
|
|
|
|
EXPOSE 3000
|
|
|
|
# Run migrations and start the app
|
|
CMD cd apps/sim && npx drizzle-kit push && cd ../.. && npm run dev |