Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
047e7f7c
Commit
047e7f7c
authored
Dec 16, 2016
by
Bo-Yi Wu
Committed by
GitHub
Dec 16, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #489 from laradock/yarn
Support specific version of yarn.
parents
b62d9bcb
b8142222
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
docker-compose.yml
docker-compose.yml
+1
-0
Dockerfile
workspace/Dockerfile
+7
-1
No files found.
docker-compose.yml
View file @
047e7f7c
...
...
@@ -28,6 +28,7 @@ services:
-
PUID=1000
-
PGID=1000
-
NODE_VERSION=stable
-
YARN_VERSION=latest
-
TZ=UTC
volumes_from
:
-
applications
...
...
workspace/Dockerfile
View file @
047e7f7c
...
...
@@ -189,10 +189,16 @@ USER laradock
ARG
INSTALL_YARN=false
ENV
INSTALL_YARN ${INSTALL_YARN}
ARG
YARN_VERSION=latest
ENV
YARN_VERSION ${YARN_VERSION}
RUN if
[
${
INSTALL_YARN
}
=
true
]
;
then
\
[
-s
"
$NVM_DIR
/nvm.sh"
]
&&
.
"
$NVM_DIR
/nvm.sh"
&&
\
curl
-o-
-L
https://yarnpkg.com/install.sh | bash
&&
\
if
[
${
YARN_VERSION
}
=
"latest"
]
;
then
\
curl
-o-
-L
https://yarnpkg.com/install.sh | bash
;
\
else
\
curl
-o-
-L
https://yarnpkg.com/install.sh | bash
-s
--
--version
${
YARN_VERSION
}
;
\
fi
&&
\
echo
""
>>
~/.bashrc
&&
\
echo
'export PATH="$HOME/.yarn/bin:$PATH"'
>>
~/.bashrc
\
;
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment