Browse Source

Use Ubuntu base image in Dockerfile, because according to Quay.io security scan it does not have any vulnerabilities, that node base images do have.

Thanks to xet7 !

Fixes #2762,
fixes https://github.com/wekan/wekan/pull/3438
Lauri Ojansivu 4 years ago
parent
commit
da2be59185
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Dockerfile

+ 2 - 2
Dockerfile

@@ -1,4 +1,4 @@
-FROM node:12 AS builder
+FROM quay.io/wekan/ubuntu:groovy-20201125.2 AS builder
 # This is our builder image. It will take the Wekan meteor code and
 # This is our builder image. It will take the Wekan meteor code and
 # build it into a standalone NodeJS package
 # build it into a standalone NodeJS package
 
 
@@ -36,7 +36,7 @@ RUN cd /build/bundle/programs/server/ && \
 RUN rm -rf /build/bundle/programs/web.browser.legacy
 RUN rm -rf /build/bundle/programs/web.browser.legacy
 
 
 
 
-FROM node:12-slim as app
+FROM quay.io/wekan/ubuntu:groovy-20201125.2 as app
 # This is our runtime image. It takes the built NodeJS package and runs it using
 # This is our runtime image. It takes the built NodeJS package and runs it using
 # the lighter Alpine NodeJS base image to keep image size down
 # the lighter Alpine NodeJS base image to keep image size down