Skip to content

Dockerize the project  #59

@nullism

Description

@nullism

This makes it a bit easier to use for those on special node versions.

A Dockerfile like:

FROM node

COPY . /app
WORKDIR /app
RUN npm install
EXPOSE 4000

ENTRYPOINT npm start

Coupled with a docker-compose.yaml like:

version: "3.9"

services:
  api:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "4000:4000"
    volumes:
      - ./:/app

Then just docker compose up api

Metadata

Metadata

Assignees

No one assigned

    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