Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Dockerize DSNP-gateway for Improved Deployment #8

@enddynayn

Description

@enddynayn

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"]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions