Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ FROM node:22-bullseye-slim

WORKDIR /lingo/app

COPY package.json package-lock.json* ./
# Copy package files first
COPY package*.json ./

# Ensure we install dev dependencies
ENV NODE_ENV=development
RUN npm install --force

# Copy rest of the app

COPY . .

EXPOSE 3000

CMD [ "npm", "run", "dev" ]
CMD ["npm", "run", "dev"]

8 changes: 8 additions & 0 deletions app/migrations/0012_white_patch.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CREATE TABLE "password_reset_tokens" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"username" text NOT NULL,
"token" text NOT NULL,
"expires_at" timestamp NOT NULL,
"createdAt" timestamp DEFAULT now(),
CONSTRAINT "password_reset_tokens_username_unique" UNIQUE("username")
);
Loading