-
Notifications
You must be signed in to change notification settings - Fork 216
/
Dockerfile
46 lines (34 loc) · 909 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM node:lts-alpine AS base
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN npm i -g pnpm@latest
RUN pnpm install
COPY . .
RUN pnpm build
FROM node:lts-alpine AS production
WORKDIR /app
COPY --from=base /app/package*.json ./
COPY --from=base /app/.next ./.next
COPY --from=base /app/public ./public
COPY --from=base /app/node_modules ./node_modules
COPY --from=base /app/next.config.mjs ./next.config.mjs
RUN npm i -g pnpm@latest
EXPOSE 3000
ENV AWS_ACCESS_KEY="" \
AWS_SECRET_KEY="" \
AWS_REGION="" \
ANTHROPIC_API_KEY="" \
AZURE_OPENAI_API_KEY="" \
AZURE_OPENAI_ENDPOINT="" \
AZURE_OPENAI_DEPLOY_INSTANCE_NAME="" \
COHERE_API_KEY="" \
FIREWORKS_API_KEY="" \
GOOGLE_API_KEY="" \
GROQ_API_KEY="" \
HUGGINGFACE_API_KEY="" \
MISTRAL_API_KEY="" \
OPENAI_API_KEY="" \
OPENAI_API_ENDPOINT="" \
PERPLEXITY_API_KEY="" \
PERPLEXITY_ENDPOINT=""
CMD ["pnpm", "start"]