Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Setting up makedev (2.3.1-93) ...
- mknod: 'mem-': Operation not permitted
- makedev mem c 1 1 root kmem 0640: failed
- ...
- FROM node:9.2
- ENV DEBIAN_FRONTEND noninteractive
- RUN apt-get update && apt-get upgrade -y
- ## Install psql client
- RUN apt-get install -y postgresql-client
- ## Install Docker
- RUN apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
- RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
- RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
- RUN apt-get update
- RUN apt-get install -y docker-ce
- ## Setting up work dir and entrypoint
- WORKDIR /app
- ADD . /app
- RUN npm install
- ENTRYPOINT [ "npm", "start" ]
- version: '3'
- services:
- app:
- build: .
- working_dir: /app
- volumes:
- - .:/app
- - /var/run/docker.sock:/var/run/docker.sock
- ports:
- - 8000:8000
- depends_on:
- - postgres
- command: >
- /bin/bash -c "
- sleep 5;
- "
- postgres:
- image: postgres:9.6
- ports:
- - 5432:5432
- environment:
- POSTGRES_USER: user
- POSTGRES_PASSWORD: password
- POSTGRES_DB: user
Add Comment
Please, Sign In to add comment