mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
* fix: docker setup * improve UX/DX of auth flow * refactor(auth): clean up verification page logic
21 lines
348 B
Docker
21 lines
348 B
Docker
FROM node:20-alpine
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy the entire sim directory
|
|
COPY sim/ ./
|
|
|
|
# Create the .env file if it doesn't exist
|
|
RUN touch .env
|
|
|
|
# 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 |