Update base images in Dockerfile
This commit is contained in:
parent
5390c6f81c
commit
800902640b
@ -1,5 +1,5 @@
|
|||||||
# backend build (api server)
|
# 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++
|
RUN apk add --no-cache --update bash dep make git curl g++
|
||||||
|
|
||||||
COPY ./api /go/src/commento/api/
|
COPY ./api /go/src/commento/api/
|
||||||
@ -8,7 +8,7 @@ RUN make prod -j$(($(nproc) + 1))
|
|||||||
|
|
||||||
|
|
||||||
# frontend build (html, js, css, images)
|
# 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++
|
RUN apk add --no-cache --update bash make python2 g++
|
||||||
|
|
||||||
COPY ./frontend /commento/frontend
|
COPY ./frontend /commento/frontend
|
||||||
@ -17,7 +17,7 @@ RUN make prod -j$(($(nproc) + 1))
|
|||||||
|
|
||||||
|
|
||||||
# templates and db build
|
# 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
|
RUN apk add --no-cache --update bash make
|
||||||
|
|
||||||
COPY ./templates /commento/templates
|
COPY ./templates /commento/templates
|
||||||
@ -30,7 +30,7 @@ RUN make prod -j$(($(nproc) + 1))
|
|||||||
|
|
||||||
|
|
||||||
# final image
|
# final image
|
||||||
FROM alpine:3.7
|
FROM alpine:3.13
|
||||||
RUN apk add --no-cache --update ca-certificates
|
RUN apk add --no-cache --update ca-certificates
|
||||||
|
|
||||||
COPY --from=api-build /go/src/commento/api/build/prod/commento /commento/commento
|
COPY --from=api-build /go/src/commento/api/build/prod/commento /commento/commento
|
||||||
|
Loading…
Reference in New Issue
Block a user