Image can now be built from outside the blog_server directory
This commit is contained in:
1 parent
70fb5ff675
commit
2193ca5eb9
1 file changed
+2
-1
+2
-1
@@ -2,7 +2,8 @@ FROM docker.io/library/rust:1.60-alpine as builder
|
||||
WORKDIR /app/
|
||||
RUN apk update && apk add --no-cache musl-dev
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
COPY src/ ./src/
|
||||
COPY blog_server/ ./blog_server/
|
||||
COPY utils/ ./utils/
|
||||
RUN cargo build --release
|
||||
|
||||
FROM docker.io/library/alpine:latest as runtime
|
||||
|
||||
Reference in new issue
Block a user