Skip to content

Commit f95466a

Browse files
committed
Update build
1 parent abb939b commit f95466a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/build.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ jobs:
105105
env:
106106
BINARY_NAME: ${{ env.ENGINE_BINARY_NAME }}
107107
SQLX_OFFLINE: true
108-
RUSTFLAGS: "-Ctarget-feature=-crt-static"
109-
RUSTUP_TOOLCHAIN: stable
110108
run: cross build --target ${{ matrix.platform.arch }} --release
111109

112110
# 📦 Save our binary for later

engine/Dockerfile.scratch

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ FROM scratch
1515
# Security: Copy user information and switch to non-root user
1616
COPY --from=usersetup /etc/passwd /etc/passwd
1717
USER dockeruser
18+
WORKDIR /app
1819

1920
# Application Configuration
2021
# -----------------------
@@ -25,8 +26,8 @@ ENV RUST_LOG="error,edgeserver=info"
2526
# -----------------
2627
# BINARY_PATH: Path to the pre-compiled binary from GitHub Actions
2728
ARG BINARY_PATH
28-
COPY ${BINARY_PATH} /edgeserver
29-
COPY www /www
29+
COPY ${BINARY_PATH} /app/edgeserver
30+
COPY www /app/www
3031

3132
# Network Configuration
3233
# -------------------
@@ -35,4 +36,4 @@ EXPOSE 3000
3536
# Application Startup
3637
# -----------------
3738
# Using exec form of CMD as there is no shell in scratch image
38-
CMD ["/edgeserver"]
39+
CMD ["/app/edgeserver"]

0 commit comments

Comments
 (0)