Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerize the project #59

Open
nullism opened this issue Oct 3, 2022 · 0 comments
Open

Dockerize the project #59

nullism opened this issue Oct 3, 2022 · 0 comments

Comments

@nullism
Copy link

nullism commented Oct 3, 2022

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

@nullism nullism changed the title Include Docker file Dockerize the project Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant