Ryan Da commited on
Commit
95bae36
·
1 Parent(s): 55f240a

switch to docker sdk

Browse files
Files changed (3) hide show
  1. Dockerfile +12 -0
  2. README.md +1 -1
  3. nginx.conf +8 -0
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-alpine AS build
2
+ WORKDIR /app
3
+ COPY package*.json ./
4
+ RUN npm install
5
+ COPY . .
6
+ RUN npm run build
7
+
8
+ FROM nginx:alpine
9
+ COPY --from=build /app/build /usr/share/nginx/html
10
+ COPY nginx.conf /etc/nginx/conf.d/default.conf
11
+ EXPOSE 7860
12
+ CMD ["nginx", "-g", "daemon off;"]
README.md CHANGED
@@ -3,7 +3,7 @@ title: Sycophancy Benchmark
3
  emoji: 🐠
4
  colorFrom: indigo
5
  colorTo: red
6
- sdk: static
7
  pinned: false
8
  license: mit
9
  ---
 
3
  emoji: 🐠
4
  colorFrom: indigo
5
  colorTo: red
6
+ sdk: docker
7
  pinned: false
8
  license: mit
9
  ---
nginx.conf ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ server {
2
+ listen 7860;
3
+ root /usr/share/nginx/html;
4
+ index index.html;
5
+ location / {
6
+ try_files $uri $uri/ /index.html;
7
+ }
8
+ }