1
0
Fork 0
mirror of https://codeberg.org/icewind/shelve.git synced 2026-06-03 20:14:08 +02:00

to lazy to figure out docker ci with nightly

This commit is contained in:
Robin Appelman 2020-01-25 23:11:29 +01:00
commit b49d7bb3a9
3 changed files with 20 additions and 10 deletions

View file

@ -2,3 +2,4 @@ target
.git
.idea
screenshots
!./target/x86_64-unknown-linux-musl/release/shelve

View file

@ -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

7
Makefile Normal file
View 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 .