This commit is contained in:
henry.chen
2025-07-17 15:30:30 +08:00
parent e5100fa018
commit f4c70b46c1
3 changed files with 5 additions and 7 deletions

View File

@@ -14,8 +14,8 @@ COPY README.md /app/README.md
COPY CHANGELOG.md /app/CHANGELOG.md
COPY LICENSE /app/LICENSE
COPY --from=builder /eiblog/bin/backend /app/backend
COPY conf /app/conf
COPY --from=builder /eiblog/cmd/backup/backend /app/backend
COPY cmd/backup/etc /app/etc
EXPOSE 9001

View File

@@ -13,10 +13,8 @@ COPY README.md /app/README.md
COPY CHANGELOG.md /app/CHANGELOG.md
COPY LICENSE /app/LICENSE
COPY --from=builder /eiblog/bin/backend /app/backend
COPY conf /app/conf
COPY website /app/website
COPY assets /app/assets
COPY --from=builder /eiblog/cmd/eiblog/backend /app/backend
COPY cmd/eiblog/etc /app/etc
EXPOSE 9000

View File

@@ -1,3 +1,3 @@
#!/usr/bin/env sh
go build -tags prod -ldflags '-extldflags "-static"' -o bin/backend "./cmd/$1"
go build -tags prod -ldflags '-extldflags "-static"' -o "./cmd/$1/backend" "./cmd/$1"