Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: update Dockerfile

boojack1a86b3cb5a78
diff --git a/Dockerfile b/Dockerfile
index f177bfb3b..f62ea8319 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/