Form implementation, api routes

This commit is contained in:
2024-09-26 16:04:57 -04:00
parent 66137ff7b4
commit 6584a48f27
23 changed files with 663 additions and 214 deletions

View File

@@ -1,5 +1,8 @@
# Use the Node.js 18 Alpine Linux image as the base image
FROM node:22-alpine
FROM node:22-alpine
# Install GraphicsMagick
RUN apk add --no-cache graphicsmagick ghostscript
# Set the working directory inside the container to /app
WORKDIR /app
@@ -14,8 +17,15 @@ RUN pnpm install
# Copy all the files from the local directory to the working directory in the container
COPY . .
# Push database schema to database
RUN pnpm drizzle-kit push
# # Clear previous build artifacts
# RUN rm -rf .next
# # Build the application
# RUN pnpm build
# # Ensure correct permissions
# RUN chown -R node:node .
# USER node
# Run the application in development mode
CMD ["pnpm", "run", "dev"]