Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ PHPVERSION=7.3
# see https://github.com/dockerwest/nginx-symfony
#
NGINXVERSION=stable

#
#
# Choose your NodeJS version. To see which versions are available see
# https://github.com/dockerwest/nodejs
#
NODEVERSION=10

#
# set the symfony version, 3 and below use 3, 4 and above must use 4. Since the
# intorduction of symfony4 there were some changes where web accessible files
Expand Down
4 changes: 2 additions & 2 deletions bin/node
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ cmd = dockerrun + [
'-v', currentpath + ":/nodeapp",
'-e', "C_UID=" + env.get('C_UID'),
'-e', "C_GID=" + env.get('C_GID'),
'dockerwest/nodejs:8',
'su-exec', 'node', 'node'
'dockerwest/nodejs:' + env.get('NODEVERSION'),
'node'
] + sys.argv[1:]

os.execvp(cmd[0], cmd)
2 changes: 1 addition & 1 deletion bin/npm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cmd = dockerrun + [
'-v', currentpath + ":/nodeapp",
'-e', "C_UID=" + env.get('C_UID'),
'-e', "C_GID=" + env.get('C_GID'),
'dockerwest/nodejs:8',
'dockerwest/nodejs:' + env.get('NODEVERSION'),
'npm'
] + sys.argv[1:]

Expand Down
2 changes: 1 addition & 1 deletion bin/yarn
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cmd = dockerrun + [
'-v', currentpath + ":/nodeapp",
'-e', "C_UID=" + env.get('C_UID'),
'-e', "C_GID=" + env.get('C_GID'),
'dockerwest/nodejs:8',
'dockerwest/nodejs:' + env.get('NODEVERSION'),
'yarn'
] + sys.argv[1:]

Expand Down