mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
update to node v10 for all of the things (#6218)
* update to node v10 for all of the things * combine apt-get commands
This commit is contained in:
committed by
Chris Hoffman
parent
b62e307876
commit
fa13c45e7c
@@ -12,12 +12,14 @@ RUN apt-get update -y && apt-get install --no-install-recommends -y -q \
|
||||
libltdl-dev \
|
||||
libltdl7
|
||||
|
||||
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
|
||||
RUN apt-get install -y nodejs npm
|
||||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
|
||||
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
||||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||
|
||||
RUN apt-get update -y && apt-get install nodejs yarn=1.12.1-1
|
||||
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN npm install -g yarn@1.12.1
|
||||
|
||||
ENV GOVERSION 1.11.5
|
||||
RUN mkdir /goroot && mkdir /gopath
|
||||
|
||||
@@ -71,4 +71,7 @@ process.on('exit', function() {
|
||||
vault.kill('SIGINT');
|
||||
});
|
||||
|
||||
fs.writeFile(pidFile, process.pid);
|
||||
fs.writeFile(pidFile, process.pid, (err) => {
|
||||
if (err) throw err;
|
||||
console.log('The file has been saved!');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user