Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:18-bullseye

WORKDIR /app

RUN npm install -g nacre

ENTRYPOINT [ "nacre" ]
14 changes: 14 additions & 0 deletions Dockerfile.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:18-bullseye-slim

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build && \
npm link

ENTRYPOINT [ "nacre" ]
26 changes: 26 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: "3.9"
services:
nacre-local:
build:
context: .
dockerfile: Dockerfile.local
image: nacresh/nacre:local
container_name: nacre-local
command: '/scripts/listRecursive.js'
# Uncomment these lines if you want to disable nacre entrypoint and navigate into the container
# entrypoint:
# - "sleep"
# - "10000"
volumes:
- ./src/samples:/scripts
nacre-prod:
build: .
image: nacresh/nacre:prod
container_name: nacre-prod
# command: '/scripts/listRecursive.js'
# Uncomment these lines if you want to disable nacre entrypoint and navigate into the container
# entrypoint:
# - "sleep"
# - "10000"
volumes:
- ./src/samples:/scripts
Loading