From 1a86b3cb5a785d8c23b90edd69756ebf62094ea8 Mon Sep 17 00:00:00 2001 From: boojack Date: Sun, 3 Jul 2022 21:15:43 +0800 Subject: [PATCH] chore: update Dockerfile --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index f177bfb3..f62ea831 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build frontend dist. -FROM node:14.18.2-alpine3.14 AS frontend +FROM node:16.15.1-bullseye AS frontend WORKDIR /frontend-build COPY ./web/ . @@ -8,11 +8,9 @@ RUN yarn RUN yarn build # Build backend exec file. -FROM golang:1.16.12-alpine3.15 AS backend +FROM golang:1.18.3-bullseye AS backend WORKDIR /backend-build -RUN apk --no-cache add gcc musl-dev - COPY . . RUN go build \ @@ -20,7 +18,7 @@ RUN go build \ ./bin/server/main.go # Make workspace with above generated files. -FROM alpine:3.14.3 AS monolithic +FROM alpine:3.16.0 AS monolithic WORKDIR /usr/local/memos COPY --from=backend /backend-build/memos /usr/local/memos/