Added Docker support
This commit is contained in:
parent
6378adba7a
commit
8d8a92a0b5
10
web/Dockerfile
Normal file
10
web/Dockerfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
FROM rust:1.56-alpine3.13 AS builder
|
||||
RUN apk update
|
||||
RUN apk add musl-dev
|
||||
ADD . .
|
||||
WORKDIR web
|
||||
RUN cargo build --target=x86_64-unknown-linux-musl --release
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder target/x86_64-unknown-linux-musl/release/pronouns_today_web /
|
||||
CMD ["/pronouns_today_web"]
|
2
web/build-docker.sh
Executable file
2
web/build-docker.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
docker build .. -t 'pronouns_today_web' -f Dockerfile
|
Loading…
Reference in a new issue