Compare commits

..

3 Commits

Author SHA1 Message Date
RecordingTheSmile 18fc1cee7a fix: remove redundant line in Dockerfile build command 2025-11-02 22:39:33 +08:00
RecordingTheSmile edefba7e32 feat: update Dockerfile to include shared object files and improve build process 2025-11-02 22:34:43 +08:00
RecordingTheSmile 6fb1118da0 fix: remove unnecessary echo statements from build workflow 2025-11-02 19:43:58 +08:00
3 changed files with 4 additions and 5 deletions
-2
View File
@@ -42,8 +42,6 @@ jobs:
run: |
echo "Current directory is $PWD"
ls -al
echo "Target:"
ls -al target
- name: Build and push
uses: docker/build-push-action@v6
with:
+4 -3
View File
@@ -1,17 +1,18 @@
FROM golang:alpine as backend-builder
FROM golang:alpine AS backend-builder
WORKDIR /build
COPY . .
RUN go build -ldflags="-s -w" -o bin/server cmd/server
RUN go build -ldflags="-s -w" -o bin/server
RUN apk add --no-cache upx
RUN upx --best --lzma bin/server
FROM alpine:latest
RUN apk add --no-cache onnxruntime
COPY --from=backend-builder /build/bin/server /app/server
COPY static /app/static
COPY static/*.so /app/
WORKDIR /app
EXPOSE 8080
RUN ls -a
CMD ["./server"]
Binary file not shown.