Files
sim/Dockerfile
Waleed Latif a92ee8bf46 feat(turbo): restructured repo to be a standard turborepo monorepo (#341)
* 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
2025-05-09 21:45:49 -07:00

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