forked from external-repos/noisedash
Compare commits
3 Commits
37774b1b99
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 2090abcc51 | |||
| 1104c079dc | |||
| 7973c9e2c8 |
@@ -38,6 +38,7 @@ jobs:
|
||||
type=ref,event=branch
|
||||
type=ref,event=tag
|
||||
type=sha
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
|
||||
- name: Build (PR only)
|
||||
if: ${{ gitea.event_name == 'pull_request' }}
|
||||
|
||||
16
Dockerfile
16
Dockerfile
@@ -1,10 +1,24 @@
|
||||
# NoiseDash - Audio sample management platform
|
||||
FROM node:20
|
||||
|
||||
LABEL maintainer="kaythomas@pm.me"
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /var/noisedash
|
||||
|
||||
# Copy package files and install dependencies
|
||||
COPY package*.json ./
|
||||
RUN npm install --force
|
||||
|
||||
# Copy application code (includes default config files)
|
||||
COPY . .
|
||||
ENV NODE_ENV production
|
||||
|
||||
# Set production environment and build frontend
|
||||
ENV NODE_ENV=production
|
||||
RUN npm run build
|
||||
|
||||
# Expose application port
|
||||
EXPOSE 1432
|
||||
|
||||
# Start the server
|
||||
CMD [ "node", "server/bin/www.js" ]
|
||||
|
||||
@@ -2,16 +2,13 @@ version: "3"
|
||||
|
||||
services:
|
||||
noisedash:
|
||||
image: noisedash/noisedash:latest
|
||||
container_name: noisedash
|
||||
image: gitea.purpleraft.com/ryan/noisedash:latest
|
||||
ports:
|
||||
- "1432:1432"
|
||||
volumes:
|
||||
- db:/var/noisedash/db
|
||||
- samples:/var/noisedash/samples
|
||||
- ./config/default.json:/var/noisedash/config/default.json
|
||||
- ./db:/var/noisedash/db
|
||||
- ./samples:/var/noisedash/samples
|
||||
# Optional: Override default config if you have custom settings
|
||||
# - ./config/default.json:/var/noisedash/config/default.json
|
||||
|
||||
volumes:
|
||||
db:
|
||||
samples:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user