Files
sim/Dockerfile
Faizan Ahmed 3d71370e39 improve UX/DX of auth flow (#127)
* fix: docker setup

* improve UX/DX of auth flow

* refactor(auth): clean up verification page logic
2025-03-19 14:36:14 -07:00

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