Replace heroku with docker

This commit is contained in:
Rogerio Chaves 2020-04-15 18:32:05 +02:00
parent c1d4f20c09
commit 19597a0446
No known key found for this signature in database
GPG Key ID: E6AF5440509B1D94
4 changed files with 17 additions and 3 deletions

3
app/.dockerignore Normal file
View File

@ -0,0 +1,3 @@
.git
node_modules
out

7
app/Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM node
COPY package.json package-lock.json ./
RUN npm install
COPY . .
CMD npm run start

View File

@ -1,3 +0,0 @@
git remote rm heroku || 1
git remote add heroku https://git.heroku.com/mighty-wildwood-12743.git
git subtree push --prefix app heroku master

7
app/docker-compose.yml Normal file
View File

@ -0,0 +1,7 @@
version: "2"
services:
social:
build: .
restart: always
network_mode: host
env_file: .evn