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
|
|
@ -2,3 +2,4 @@ target
|
||||||
.git
|
.git
|
||||||
.idea
|
.idea
|
||||||
screenshots
|
screenshots
|
||||||
|
!./target/x86_64-unknown-linux-musl/release/shelve
|
||||||
20
Dockerfile
20
Dockerfile
|
|
@ -1,13 +1,15 @@
|
||||||
FROM ekidd/rust-musl-builder AS build
|
#FROM ekidd/rust-musl-builder AS build
|
||||||
|
#
|
||||||
ADD . ./
|
#ADD . ./
|
||||||
RUN sudo chown -R rust:rust .
|
#RUN sudo chown -R rust:rust .
|
||||||
|
#
|
||||||
RUN cargo build --release
|
#RUN cargo build --release
|
||||||
|
#
|
||||||
FROM alpine:latest
|
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
|
EXPOSE 80
|
||||||
ENV ROCKET_PORT=80
|
ENV ROCKET_PORT=80
|
||||||
|
|
||||||
|
|
|
||||||
7
Makefile
Normal file
7
Makefile
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
target/x86_64-unknown-linux-musl/release/shelve:
|
||||||
|
cargo b --release --target x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
.PHONY: target/x86_64-unknown-linux-musl/release/shelve
|
||||||
|
|
||||||
|
docker: target/x86_64-unknown-linux-musl/release/shelve
|
||||||
|
docker build -t icewind1991/shelve .
|
||||||
Loading…
Add table
Add a link
Reference in a new issue