Commit cec2c7b 1 parent 2841c5c commit cec2c7b Copy full SHA for cec2c7b
File tree 3 files changed +50
-0
lines changed
3 files changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ .github
2
+ .next
3
+ node_modules
4
+ .dockerignore
5
+ .env
6
+ .env.example
7
+ .eslintrc.cjs
8
+ .gitignore
9
+ .docker-compose.yml
10
+ Dockerfile
11
+ Makefile
12
+ next-env.d.ts
13
+ prettier.config.js
14
+ README.md
Original file line number Diff line number Diff line change
1
+ FROM node:current-alpine AS build
2
+
3
+ RUN apk add openssl
4
+
5
+ WORKDIR /build
6
+
7
+ COPY . .
8
+
9
+ RUN npm install -g pnpm
10
+
11
+ RUN pnpm i --frozen-lockfile
12
+
13
+ ENV SKIP_ENV_VALIDATION=1
14
+
15
+ RUN pnpm build
16
+
17
+ FROM node:current-alpine AS runner
18
+
19
+ WORKDIR /app
20
+
21
+ RUN apk add openssl
22
+ # Prisma is used in prod deployment
23
+ RUN npm install -g prisma
24
+
25
+ COPY --from=build /build/.next/standalone ./
26
+ RUN rm -f .env
27
+ COPY --from=build /build/.next/static ./.next/static/
28
+ COPY --from=build /build/prisma ./prisma/
29
+ COPY --from=build /build/public ./public/
30
+
31
+ EXPOSE 3000
32
+ ENV PORT=3000
33
+
34
+ ENV NEXT_TELEMETRY_DISABLED=1
35
+
36
+ CMD [ "node" , "server.js" ]
You can’t perform that action at this time.
0 commit comments