chore: update dockerfile

This commit is contained in:
Steven
2023-12-23 14:13:40 +08:00
parent 953141813c
commit 273d6a6986
3 changed files with 7 additions and 50 deletions

View File

@@ -15,7 +15,6 @@ FROM golang:1.21-alpine AS backend
WORKDIR /backend-build
COPY . .
COPY --from=frontend /frontend-build/web/dist ./server/frontend/dist
RUN CGO_ENABLED=0 go build -o memos ./bin/memos/main.go
@@ -26,6 +25,7 @@ WORKDIR /usr/local/memos
RUN apk add --no-cache tzdata
ENV TZ="UTC"
COPY --from=frontend /frontend-build/web/dist /usr/local/memos/dist
COPY --from=backend /backend-build/memos /usr/local/memos/
EXPOSE 5230