Jon Taylor commited on
Commit
4a0818c
1 Parent(s): a3e20c4

edited Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. README.md +7 -0
Dockerfile CHANGED
@@ -35,7 +35,7 @@ RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
35
  COPY frontend/package*.json frontend/
36
  RUN cd frontend && npm install
37
 
38
- # Copy frontend app and install Node.js dependencies
39
  COPY frontend/ frontend/
40
  RUN cd frontend && npm run build
41
 
 
35
  COPY frontend/package*.json frontend/
36
  RUN cd frontend && npm install
37
 
38
+ # Copy frontend app and build
39
  COPY frontend/ frontend/
40
  RUN cd frontend && npm run build
41
 
README.md CHANGED
@@ -8,3 +8,10 @@ pinned: false
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
11
+
12
+ ---
13
+
14
+ ## Local docker build
15
+
16
+ docker build -t username/appname:0.0 .
17
+ docker run -p 8000:7860 --env-file .env jusername/appname:0.0