[BE-setup] Add ci build file

This commit is contained in:
Dosun Yun
2022-10-27 18:45:19 +09:00
parent a2d06f8fec
commit b66c6a2421
2 changed files with 15 additions and 0 deletions

2
backend-api/.env.ci Normal file
View File

@@ -0,0 +1,2 @@
DOCKER_LOCAL_VOLUME=./
DOCKER_LOCAL_AWS=/home/vanilla/.aws

View File

@@ -0,0 +1,13 @@
version: '3.5'
services:
serverless-api-dev-build:
image: vanillabrain/serverless-docker:1.0
restart: on-failure
working_dir: /app
command: bash -c "npm install && npm run deploy:dev"
volumes:
- ${DOCKER_LOCAL_VOLUME}:/app
- ${DOCKER_LOCAL_AWS}:/root/.aws
environment:
TZ: Asia/Seoul