Skip to content

Instantly share code, notes, and snippets.

View princewillopah's full-sized avatar

opah princewill princewillopah

View GitHub Profile
@princewillopah
princewillopah / Dockerfile
Created August 18, 2023 06:47 — forked from daliborgogic/Dockerfile
Best-Practice Docker Image and GitHub Workflow for Node.js app. [Continuous Integration/Delivery/Deployment]
ARG VERSION=12.10.0
# Development ##################################################################
FROM mhart/alpine-node:${VERSION} AS dev
WORKDIR /app
COPY package*.json .gitignore ./
ENV HOST=0.0.0.0
ENV PORT=${PORT}
RUN npm ci --prefer-offline
COPY . .