anuragshas commited on
Commit
5dc07e6
·
1 Parent(s): 8616962

add: huggingface docker

Browse files
Files changed (3) hide show
  1. Dockerfile +3 -0
  2. Dockerfile.prod +1 -1
  3. package.json +1 -1
Dockerfile CHANGED
@@ -4,6 +4,9 @@ FROM node:22-alpine
4
  # Set working directory
5
  WORKDIR /app
6
 
 
 
 
7
  # Copy package files
8
  COPY package*.json ./
9
 
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
+ # Set NODE_ENV to production
8
+ ENV NODE_ENV=production
9
+
10
  # Copy package files
11
  COPY package*.json ./
12
 
Dockerfile.prod CHANGED
@@ -8,7 +8,7 @@ WORKDIR /app
8
  COPY package*.json ./
9
 
10
  # Install dependencies
11
- RUN npm ci --only=production=false
12
 
13
  # Copy source code
14
  COPY . .
 
8
  COPY package*.json ./
9
 
10
  # Install dependencies
11
+ RUN npm ci --omit=dev
12
 
13
  # Copy source code
14
  COPY . .
package.json CHANGED
@@ -3,7 +3,7 @@
3
  "version": "1.0.0",
4
  "description": "Client-side quotation generator with linting setup",
5
  "scripts": {
6
- "prepare": "husky",
7
  "dev": "parcel index.html",
8
  "build": "parcel build index.html",
9
  "start": "node server.js",
 
3
  "version": "1.0.0",
4
  "description": "Client-side quotation generator with linting setup",
5
  "scripts": {
6
+ "prepare": "[ \"$NODE_ENV\" = \"production\" ] || husky",
7
  "dev": "parcel index.html",
8
  "build": "parcel build index.html",
9
  "start": "node server.js",