You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 1, 2024. It is now read-only.
Description
To streamline our deployment process, we need to dockerize our application.
Acceptance Criteria
Add Dockerfile
Base image specs: node: 18
Working Directory: /urs/src/app
See below...
Update package.json to start
Update README.MD Documentation
Example
FROM node:18 AS builder
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
# Build the application
RUN npm run build
# Production stage
FROM node:18
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/dist ./dist
COPY package*.json ./
RUN npm install --only=production
CMD ["sh", "-c", "npm run start"]
Description
To streamline our deployment process, we need to dockerize our application.
Acceptance Criteria
Example