Spaces:
Running
Running
bradduy
commited on
Commit
·
f7dc5bc
1
Parent(s):
d04e372
update
Browse files- .github/workflows/hf.yml +14 -0
- Dockerfile +20 -0
.github/workflows/hf.yml
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jobs:
|
2 |
+
sync-to-hub:
|
3 |
+
runs-on: ubuntu-latest
|
4 |
+
steps:
|
5 |
+
- uses: actions/checkout@v3
|
6 |
+
with:
|
7 |
+
fetch-depth: 0
|
8 |
+
lfs: true
|
9 |
+
- name: Push to hub
|
10 |
+
env:
|
11 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
12 |
+
HF_USERNAME: ${{ secrets.HF_USERNAME }}
|
13 |
+
SPACE_NAME: ${{ secrets.SPACE_NAME }}
|
14 |
+
run: git push https://$HF_USERNAME:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/$HF_USERNAME/$SPACE_NAME main
|
Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Node.js runtime as a parent image
|
2 |
+
FROM node:20
|
3 |
+
|
4 |
+
# Set the working directory in the container
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy the package.json and package-lock.json (or yarn.lock) to install dependencies
|
8 |
+
COPY package*.json ./
|
9 |
+
|
10 |
+
# Install dependencies
|
11 |
+
RUN yarn install
|
12 |
+
|
13 |
+
# Copy the rest of the application code into the container
|
14 |
+
COPY . .
|
15 |
+
|
16 |
+
# Expose the port that Next.js will run on
|
17 |
+
EXPOSE 3000
|
18 |
+
|
19 |
+
# Run the Next.js development server
|
20 |
+
CMD ["yarn", "run", "build"]
|