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
6111ca5f
Commit
6111ca5f
authored
Aug 11, 2016
by
Mahmoud Zalt
Committed by
GitHub
Aug 11, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #222 from tianissimo/dev-workspace-node-fix
Fixed nvm/node installation not working.
parents
f1202857
b393996d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
Dockerfile
workspace/Dockerfile
+4
-10
No files found.
workspace/Dockerfile
View file @
6111ca5f
...
@@ -75,7 +75,7 @@ ARG PUID=1000
...
@@ -75,7 +75,7 @@ ARG PUID=1000
ARG
PGID=1000
ARG
PGID=1000
RUN
groupadd
-g
$PGID
laradock
&&
\
RUN
groupadd
-g
$PGID
laradock
&&
\
useradd
-u
$PUID
-g
laradock
-m
laradock
useradd
-u
$PUID
-g
laradock
-m
laradock
#####################################
#####################################
# Composer:
# Composer:
#####################################
#####################################
...
@@ -102,17 +102,11 @@ RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
...
@@ -102,17 +102,11 @@ RUN if [ ${COMPOSER_GLOBAL_INSTALL} = true ]; then \
# Check if NVM needs to be installed
# Check if NVM needs to be installed
ARG
INSTALL_NODE=true
ARG
INSTALL_NODE=true
ENV
INSTALL_NODE ${INSTALL_NODE}
ENV
INSTALL_NODE ${INSTALL_NODE}
ENV
NVM_DIR /home/laradock/.nvm
RUN if
[
${
INSTALL_NODE
}
=
true
]
;
then
\
RUN if
[
${
INSTALL_NODE
}
=
true
]
;
then
\
# Install nvm (A Node Version Manager)
# Install nvm (A Node Version Manager)
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | bash \
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | bash && \
;fi
. ~/.nvm/nvm.sh && \
# Again check if NVM needs to be installed
# I had to split this condition link this because when I get it inside the above if statement is refuses to work!
ENV
if [ ${INSTALL_NODE} = true ]; then \
# Set the ENV
NVM_DIR=/home/laradock/.nvm \
# Install NodeJS with NVM
RUN . ~/.nvm/nvm.sh && \
nvm install stable && \
nvm install stable && \
nvm use stable && \
nvm use stable && \
nvm alias stable && \
nvm alias stable && \
...
...
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