From 800902640b1088c8c63ba5ee43975605b4e8f4c4 Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 4 Sep 2020 23:05:37 +0000 Subject: [PATCH] Update base images in Dockerfile --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3fe68b3..e6be2b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # backend build (api server) -FROM golang:1.14-alpine AS api-build +FROM golang:1.15-alpine AS api-build RUN apk add --no-cache --update bash dep make git curl g++ COPY ./api /go/src/commento/api/ @@ -8,7 +8,7 @@ RUN make prod -j$(($(nproc) + 1)) # frontend build (html, js, css, images) -FROM node:10-alpine AS frontend-build +FROM node:12-alpine AS frontend-build RUN apk add --no-cache --update bash make python2 g++ COPY ./frontend /commento/frontend @@ -17,7 +17,7 @@ RUN make prod -j$(($(nproc) + 1)) # templates and db build -FROM alpine:3.9 AS templates-db-build +FROM alpine:3.13 AS templates-db-build RUN apk add --no-cache --update bash make COPY ./templates /commento/templates @@ -30,7 +30,7 @@ RUN make prod -j$(($(nproc) + 1)) # final image -FROM alpine:3.7 +FROM alpine:3.13 RUN apk add --no-cache --update ca-certificates COPY --from=api-build /go/src/commento/api/build/prod/commento /commento/commento