Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
shincurry committed Jan 30, 2020
1 parent 4f21b1c commit 6f36ca5
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ sw.*

# config
config.js
docker-compose.yml

# Heroku
.env
Expand Down
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:10-alpine

WORKDIR /usr/src/app

COPY . .
COPY package*.json .

RUN yarn \
&& yarn build
21 changes: 21 additions & 0 deletions docker-compose.example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: '3'

services:
animeloop-web-nuxt:
container_name: animeloop-web-nuxt
build:
context: .
dockerfile: ./Dockerfile
expose:
- 8080
ports:
- 11102:8080
networks:
- postgres_default
- redis_default
command: yarn start
networks:
postgres_default:
external: true
redis_default:
external: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"config": {
"nuxt": {
"host": "0.0.0.0",
"port": "3333"
"port": "8080"
}
},
"scripts": {
Expand Down

0 comments on commit 6f36ca5

Please sign in to comment.