Update dockerfile to reflect new project structure

This commit is contained in:
Pantonshire committed 2022-06-04 20:56:10 +01:00
1 parent d7a521e581
commit d397d50cdb
1 file changed
+2 -3
+2 -3
View File
@@ -2,11 +2,10 @@ 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 blog_server/ ./blog_server/
COPY utils/ ./utils/
COPY src/ ./src/
RUN cargo build --release
FROM docker.io/library/alpine:latest as runtime
COPY --from=builder /app/target/release/blog_server /usr/local/bin/blog_server
ENTRYPOINT ["/usr/local/bin/blog_server"]
CMD ["/etc/blog/config.kdl"]
CMD ["/etc/blog/config.toml"]