v0.13-dockerP7
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
*/target*
|
||||
data
|
||||
data-debug
|
||||
Dockerfile
|
||||
|
||||
@@ -8,13 +8,14 @@ COPY . /usr/src/app
|
||||
|
||||
RUN cp .prod .env
|
||||
RUN rustup target add wasm32-unknown-unknown
|
||||
RUN export CARGO_BUILD_JOBS = 1
|
||||
RUN cd frontend && cargo install trunk && trunk build --release
|
||||
RUN cd backend && cargo build --release
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
COPY --from=builder /usr/src/app/backend/target/x86_64-unknown-linux-musl/release/booksman /usr/src/app/booksman
|
||||
COPY --from=builder /usr/src/app/backend/target/wasm32-unknown-unknown/release/booksman /usr/src/app/booksman
|
||||
COPY --from=builder /usr/src/app/dist /usr/src/dist
|
||||
COPY --from=builder /usr/src/app/.env /usr/src/app/.env
|
||||
|
||||
|
||||
Reference in New Issue
Block a user