mirror of
https://github.com/dalbodeule/hop-gate.git
synced 2025-12-08 04:45:43 +09:00
[chore](build): remove Node.js and Tailwind CSS build steps from server Dockerfile
- Removed Node.js and npm installation. - Eliminated Tailwind CSS build process for error pages.
This commit is contained in:
@@ -21,9 +21,6 @@ ARG TARGETARCH=amd64
|
|||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
# Node.js + npm 설치 (Tailwind CSS 빌드를 위해 필요)
|
|
||||||
RUN apk add --no-cache nodejs npm
|
|
||||||
|
|
||||||
# 모듈/의존성 캐시를 최대한 활용하기 위해 go.mod, go.sum 먼저 복사
|
# 모듈/의존성 캐시를 최대한 활용하기 위해 go.mod, go.sum 먼저 복사
|
||||||
COPY go.mod ./
|
COPY go.mod ./
|
||||||
COPY go.sum ./
|
COPY go.sum ./
|
||||||
@@ -34,11 +31,6 @@ RUN go mod download
|
|||||||
# 실제 소스 코드 및 Tailwind 설정 복사
|
# 실제 소스 코드 및 Tailwind 설정 복사
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Tailwind 기반 에러 페이지 CSS 빌드
|
|
||||||
# - package.json 의 "build:errors-css" 스크립트를 사용해
|
|
||||||
# internal/errorpages/assets/errors.css 를 생성합니다.
|
|
||||||
RUN npm install && npm run build:errors-css
|
|
||||||
|
|
||||||
# 서버 바이너리 빌드 (멀티 아키텍처: TARGETOS/TARGETARCH 기반)
|
# 서버 바이너리 빌드 (멀티 아키텍처: TARGETOS/TARGETARCH 기반)
|
||||||
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /out/hop-gate-server ./cmd/server
|
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /out/hop-gate-server ./cmd/server
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user