diff options
author | Santhosh C <csesanthosh15@gmail.com> | 2022-04-26 20:52:11 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 15:22:11 +0000 |
commit | edc3945b216f2c5bc0f7982138e6936490ab0628 (patch) | |
tree | 77ee53764d16c5c2d774b14a1e97ec7b0b95f4cb /Dockerfile | |
parent | Fix issue with incorrect branch in the 'recipes' git submodule (diff) | |
download | ferdium-server-edc3945b216f2c5bc0f7982138e6936490ab0628.tar.gz ferdium-server-edc3945b216f2c5bc0f7982138e6936490ab0628.tar.zst ferdium-server-edc3945b216f2c5bc0f7982138e6936490ab0628.zip |
update node version to 16.14.2 (#7)
* Update dependencies (node, npm and node-gyp) to be coherent with Ferdium-App
* Update 'recipes' submodule
Co-authored-by: André Oliveira <oliveira.andrerodrigues95@gmail.com>
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,14 +1,15 @@ | |||
1 | FROM node:14.17-alpine as build | 1 | FROM node:16.14-alpine as build |
2 | 2 | ||
3 | WORKDIR /server-build | 3 | WORKDIR /server-build |
4 | 4 | ||
5 | RUN ["apk", "add", "--no-cache", "python", "make", "gcc", "g++", "libc-dev", "sqlite-dev"] | 5 | RUN ["apk", "add", "--no-cache", "python3", "make", "gcc", "g++", "libc-dev", "sqlite-dev"] |
6 | 6 | ||
7 | COPY . /server-build | 7 | COPY . /server-build |
8 | 8 | ||
9 | RUN npm i -g npm@8.7.0 | ||
9 | RUN ["npm", "ci", "--production", "--build-from-source", "--sqlite=/usr/local"] | 10 | RUN ["npm", "ci", "--production", "--build-from-source", "--sqlite=/usr/local"] |
10 | 11 | ||
11 | FROM node:14.17-alpine | 12 | FROM node:16.4-alpine |
12 | 13 | ||
13 | WORKDIR /app | 14 | WORKDIR /app |
14 | LABEL maintainer="ferdium" | 15 | LABEL maintainer="ferdium" |