diff --git a/Dockerfile b/Dockerfile index 258de75..545d080 100644 --- a/Dockerfile +++ b/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" ]