initial commit
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
# Build stage
|
||||
FROM rust:alpine AS build
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN apk update && apk add --no-cache musl-dev
|
||||
RUN cargo build --release
|
||||
|
||||
# Deploy stage
|
||||
FROM alpine
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/target/release/webserver .
|
||||
CMD ["./webserver"]
|
Reference in New Issue
Block a user