forked from ryanmwangi/CalMerger
build(docker): add docker-compose.yml file
This commit is contained in:
parent
9910e458f1
commit
67fc4a6987
2 changed files with 15 additions and 1 deletions
14
docker-compose.yml
Normal file
14
docker-compose.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
version: '3.3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
calmerge:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=production
|
||||||
|
- NODE_PORT=3000
|
||||||
|
volumes:
|
||||||
|
- ./calendar:/app/calendar
|
||||||
|
- ./logs:/app/logs
|
||||||
|
restart: unless-stopped
|
|
@ -8,7 +8,7 @@ WORKDIR /usr/src/app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm install --production
|
RUN npm install --omit=dev
|
||||||
|
|
||||||
# Copy the rest of the project files
|
# Copy the rest of the project files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
Loading…
Add table
Reference in a new issue