File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ FROM scratch
1515# Security: Copy user information and switch to non-root user
1616COPY --from=usersetup /etc/passwd /etc/passwd
1717USER 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
2728ARG 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"]
You can’t perform that action at this time.
0 commit comments