Cambera commited on
Commit
fd4e782
·
verified ·
1 Parent(s): e2a686e

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-alpine AS builder
2
+ WORKDIR /app
3
+ COPY package.json yarn.lock* package-lock.json* ./
4
+ RUN npm install
5
+ COPY . .
6
+ RUN npm run build
7
+
8
+ FROM node:18-alpine
9
+ WORKDIR /app
10
+ COPY --from=builder /app/.next ./.next
11
+ COPY --from=builder /app/public ./public
12
+ COPY --from=builder /app/package.json ./package.json
13
+ RUN npm install --production
14
+ EXPOSE 3000
15
+ CMD ["npm", "start"]