Skip to content

Commit

Permalink
Dockerization working again
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Mar 19, 2021
1 parent 1e6930f commit c741e47
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .dockerignore → app/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# We use a white-list approach here, so ignore everything and then make exceptions.

*

!src/*
!public/*
!server/*

!nodemon.json
!package*.json
!tsconfig.json
!config.json

!.babelrc
!.env

!Dockerfile
1 change: 1 addition & 0 deletions app/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PORT=1228
2 changes: 1 addition & 1 deletion app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /usr/app

COPY . .

RUN npm run install
RUN npm install
RUN npm run build

ENV NODE_ENV=production
Expand Down
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
version: '3'
services:
app:
build: app/
ports: '${PORT}:1227'
build: ./app/
ports:
- 1227
env_file:
- './app/.env'
- ./app/.env

0 comments on commit c741e47

Please sign in to comment.