mirror of
https://github.com/usememos/memos.git
synced 2024-11-30 22:14:19 +03:00
chore: update Dockerfile
This commit is contained in:
parent
d211f0f474
commit
1a86b3cb5a
@ -1,5 +1,5 @@
|
|||||||
# Build frontend dist.
|
# Build frontend dist.
|
||||||
FROM node:14.18.2-alpine3.14 AS frontend
|
FROM node:16.15.1-bullseye AS frontend
|
||||||
WORKDIR /frontend-build
|
WORKDIR /frontend-build
|
||||||
|
|
||||||
COPY ./web/ .
|
COPY ./web/ .
|
||||||
@ -8,11 +8,9 @@ RUN yarn
|
|||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
# Build backend exec file.
|
# Build backend exec file.
|
||||||
FROM golang:1.16.12-alpine3.15 AS backend
|
FROM golang:1.18.3-bullseye AS backend
|
||||||
WORKDIR /backend-build
|
WORKDIR /backend-build
|
||||||
|
|
||||||
RUN apk --no-cache add gcc musl-dev
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN go build \
|
RUN go build \
|
||||||
@ -20,7 +18,7 @@ RUN go build \
|
|||||||
./bin/server/main.go
|
./bin/server/main.go
|
||||||
|
|
||||||
# Make workspace with above generated files.
|
# Make workspace with above generated files.
|
||||||
FROM alpine:3.14.3 AS monolithic
|
FROM alpine:3.16.0 AS monolithic
|
||||||
WORKDIR /usr/local/memos
|
WORKDIR /usr/local/memos
|
||||||
|
|
||||||
COPY --from=backend /backend-build/memos /usr/local/memos/
|
COPY --from=backend /backend-build/memos /usr/local/memos/
|
||||||
|
Loading…
Reference in New Issue
Block a user