run production build in container

This commit is contained in:
Gavin McDonald
2025-04-19 17:58:54 -04:00
parent d405ae2d6d
commit 6538013ddd
3 changed files with 6 additions and 3 deletions

View File

@@ -5,11 +5,13 @@ WORKDIR /app
# Copy and install dependencies
COPY package*.json ./
RUN npm install
RUN npm ci
# Copy the rest of the app
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["npm", "run", "dev"]
CMD ["npm", "run", "start"]