Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design2
/
2015104215
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jaehyuk-jang
2021-06-07 01:41:11 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
484526fafc613d8b132cad7278d7b215322450ae
484526fa
1 parent
5dadb074
Fix typo
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
12 deletions
project/docker_image/backend/dockerfile
project/docker_image/frontend/dockerfile
project/package.json
project/docker_image/backend/dockerfile
View file @
484526f
...
...
@@ -8,8 +8,6 @@ RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
RUN
.
"
$NVM_DIR
/nvm.sh"
&&
nvm use v
${
NODE_VERSION
}
RUN
.
"
$NVM_DIR
/nvm.sh"
&&
nvm
alias
default v
${
NODE_VERSION
}
ENV
PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
RUN
node --version
RUN
npm --version
RUN
npm install -g yarn
RUN
apt-get install -y git
RUN
mkdir /app
...
...
project/docker_image/frontend/dockerfile
View file @
484526f
...
...
@@ -8,14 +8,12 @@ RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
RUN
.
"
$NVM_DIR
/nvm.sh"
&&
nvm use v
${
NODE_VERSION
}
RUN
.
"
$NVM_DIR
/nvm.sh"
&&
nvm
alias
default v
${
NODE_VERSION
}
ENV
PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
RUN
node --version
RUN
npm --version
RUN
npm install -g yarn
RUN
apt-get install -y git
RUN
mkdir /app
RUN
git clone http://khuhub.khu.ac.kr/2021-1-capstone-design2/2015104215 /app
RUN
cd
/app/project;yarn install
RUN
cd
/
app/project;yarn build:web
RUN
npm install -g yarn
RUN
mkdir /web
RUN
git clone --depth
=
1 http://khuhub.khu.ac.kr/2021-1-capstone-design2/2015104215/ /web
RUN
cd
/
web/project;yarn install
EXPOSE
3000
WORKDIR
/app/project
CMD
[ "yarn", "start:web" ]
\ No newline at end of file
RUN
cd
/web/project;yarn build:web
WORKDIR
/web/project
# CMD [ "yarn", "start:web" ]
\ No newline at end of file
...
...
project/package.json
View file @
484526f
...
...
@@ -7,7 +7,7 @@
"scripts"
:
{
"build"
:
"lerna run build"
,
"build:api"
:
"lerna exec --scope @graphql-community/api --stream yarn build"
,
"build:web"
:
"lerna exec --scope @graphql-community/
api
--stream yarn build"
,
"build:web"
:
"lerna exec --scope @graphql-community/
web
--stream yarn build"
,
"dev:web"
:
"lerna exec --scope @graphql-community/web --stream yarn dev"
,
"dev:api"
:
"lerna exec --scope @graphql-community/api --stream yarn start:dev"
,
"start:web"
:
"lerna exec --scope @graphql-community/web --stream yarn start"
,
...
...
Please
register
or
login
to post a comment