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
|
RUN cargo chef cook --release --recipe-path recipe.json
|
||||||
COPY . .
|
COPY . .
|
||||||
ENV SQLX_OFFLINE=true
|
ENV SQLX_OFFLINE=true
|
||||||
ENV RUSTFLAGS="-C strip=symbols -C target-cpu=native"
|
ENV RUSTFLAGS="-C strip=symbols -C"
|
||||||
RUN cargo build --release --bin zero2prod
|
RUN cargo build --release --bin zero2prod
|
||||||
RUN npm install && npm run build-css
|
RUN npm install && npm run build-css
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user