diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7f4245c --- /dev/null +++ b/docker-compose.yml @@ -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 \ No newline at end of file diff --git a/dockerfile b/dockerfile index b38b7e0..c05fe7c 100644 --- a/dockerfile +++ b/dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/src/app COPY package*.json ./ # Install dependencies -RUN npm install --production +RUN npm install --omit=dev # Copy the rest of the project files COPY . .