forked from external-repos/noisedash
fix: format Dockerfile for improved readability and consistency
This commit is contained in:
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" ]
|
||||
|
||||
Reference in New Issue
Block a user