update Dockerfile config build issue when running on VPS
This commit is contained in:
@@ -11,7 +11,7 @@ COPY --from=planner /app/recipe.json recipe.json
|
||||
RUN cargo chef cook --release --recipe-path recipe.json
|
||||
COPY . .
|
||||
ENV SQLX_OFFLINE=true
|
||||
ENV RUSTFLAGS="-C strip=symbols -C target-cpu=native"
|
||||
ENV RUSTFLAGS="-C strip=symbols"
|
||||
RUN cargo build --release --bin zero2prod
|
||||
RUN npm install && npm run build-css
|
||||
|
||||
|
||||
Reference in New Issue
Block a user