chore: update Dockerfile

This commit is contained in:
boojack 2022-07-03 21:15:43 +08:00
parent d211f0f474
commit 1a86b3cb5a

View File

@ -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/