Skip to content

Commit

Permalink
Merge pull request #101 from MTG/discogs-demo
Browse files Browse the repository at this point in the history
Discogs demo
  • Loading branch information
jmarcosfer authored Jul 19, 2022
2 parents b95d6d5 + a96b8b8 commit 1c854cb
Show file tree
Hide file tree
Showing 47 changed files with 7,369 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/demos/discogs-autotagging/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*/node_modules
*/public
*/README.md
7 changes: 7 additions & 0 deletions examples/demos/discogs-autotagging/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
!package-lock.json
.vscode
29 changes: 29 additions & 0 deletions examples/demos/discogs-autotagging/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM node:14.18.1 as fe-builder

WORKDIR /usr/src/app
COPY views/package.json .
RUN npm install

COPY views/ .
RUN npm run build

FROM node:14.18.1

RUN apt-get -y update && \
apt-get install -y ffmpeg && \
rm -rf /var/lib/apt/lists/*

WORKDIR /usr/src/app

COPY server/package.json .

RUN npm install

COPY ./server/ ./
COPY --from=fe-builder /usr/src/app/dist/ ./public

EXPOSE 8000
ENV PORT=8000

WORKDIR /usr/src/app
CMD node server.js
12 changes: 12 additions & 0 deletions examples/demos/discogs-autotagging/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Music autotagging with Discogs Effnet
Demo showing realtime music autotagging based on the Discogs taxonomy (400 subgenre tags).

## To start project locally (Dev version):
- `cd server`
- `npm run dev`
- `cd ../views`
- `npm run dev`

## To build for deployment:
- `docker build -t discogs-demo:latest .`
- `docker run --rm -it -p 8000:8000 discogs-demo:latest node server.js`
Loading

0 comments on commit 1c854cb

Please sign in to comment.