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