ci(docker): changes to dockerfile to make builds faster

This commit is contained in:
Amruth Pillai
2022-03-05 23:18:47 +01:00
parent 37f0ab3bca
commit 00505a9e5d
4 changed files with 19 additions and 24 deletions

View File

@ -12,22 +12,8 @@ services:
- pgdata:/var/lib/postgresql/data
# Development
app:
build: .
container_name: app
links:
- postgres
ports:
- 3000:3000
- 3100:3100
env_file: .env
environment:
NODE_ENV: development
POSTGRES_HOST: postgres
# Production
# app:
# image: amruthpillai/reactive-resume
# build: .
# container_name: app
# links:
# - postgres
@ -36,8 +22,22 @@ services:
# - 3100:3100
# env_file: .env
# environment:
# NODE_ENV: production
# NODE_ENV: development
# POSTGRES_HOST: postgres
# Production
app:
image: reactive-resume
container_name: app
links:
- postgres
ports:
- 3000:3000
- 3100:3100
env_file: .env
environment:
NODE_ENV: production
POSTGRES_HOST: postgres
volumes:
pgdata: