From f6f9cadb50832f3fd7cd4885483844fca8c4de88 Mon Sep 17 00:00:00 2001 From: imnyang Date: Thu, 11 Dec 2025 02:05:27 +0900 Subject: [PATCH] Refactor Dockerfile to streamline build process and set timezone --- Dockerfile | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index e9e1695..41de14d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ FROM oven/bun:alpine as build RUN apk add --no-cache tzdata git +ENV TZ=Asia/Seoul +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone WORKDIR /app @@ -14,18 +16,5 @@ RUN bun install --frozen-lockfile COPY . . RUN bun run ./cli/git-commit-build.ts -RUN bun run build -FROM alpine:latest as runtime - -RUN apk add --no-cache tzdata libstdc++ libgcc - -ENV TZ=Asia/Seoul -RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone - -WORKDIR /app - -COPY --from=build /app/memos-rss . -COPY --from=build /app/version . - -CMD ["./memos-rss"] \ No newline at end of file +CMD ["bun", "run", "start"] \ No newline at end of file