mirror of
https://codeberg.org/icewind/shelve.git
synced 2026-06-03 12:04:09 +02:00
to lazy to figure out docker ci with nightly
This commit is contained in:
parent
1b60e617db
commit
b49d7bb3a9
3 changed files with 20 additions and 10 deletions
20
Dockerfile
20
Dockerfile
|
|
@ -1,13 +1,15 @@
|
|||
FROM ekidd/rust-musl-builder AS build
|
||||
|
||||
ADD . ./
|
||||
RUN sudo chown -R rust:rust .
|
||||
|
||||
RUN cargo build --release
|
||||
|
||||
#FROM ekidd/rust-musl-builder AS build
|
||||
#
|
||||
#ADD . ./
|
||||
#RUN sudo chown -R rust:rust .
|
||||
#
|
||||
#RUN cargo build --release
|
||||
#
|
||||
FROM alpine:latest
|
||||
|
||||
COPY --from=build /home/rust/src/target/x86_64-unknown-linux-musl/release/shelve /
|
||||
#
|
||||
#COPY --from=build /home/rust/src/target/x86_64-unknown-linux-musl/release/shelve /
|
||||
RUN mkdir /data
|
||||
ADD ./target/x86_64-unknown-linux-musl/release/shelve /
|
||||
EXPOSE 80
|
||||
ENV ROCKET_PORT=80
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue