Docker build for slideshow app.
This commit is contained in:
parent
2ee2a98c7d
commit
737b290cc0
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
target
|
||||||
|
*/node_modules
|
||||||
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
FROM rust:latest AS build-env
|
||||||
|
COPY ./ /src/
|
||||||
|
COPY ./dockerfiles/netrc /root/.netrc
|
||||||
|
RUN mkdir /root/.cargo
|
||||||
|
COPY ./dockerfiles/cargo-config /.cargo/config
|
||||||
|
RUN apt-get update && apt-get install -y strace build-essential clang
|
||||||
|
WORKDIR /src
|
||||||
|
RUN cargo version && cargo install --path .
|
||||||
|
|
||||||
|
FROM rust:slim
|
||||||
|
COPY --from=build-env /usr/local/cargo/bin/photosync /usr/bin/
|
||||||
1
config.dbuild
Normal file
1
config.dbuild
Normal file
@ -0,0 +1 @@
|
|||||||
|
package="app/photosync"
|
||||||
2
dockerfiles/cargo-config
Normal file
2
dockerfiles/cargo-config
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[net]
|
||||||
|
git-fetch-with-cli = true
|
||||||
1
dockerfiles/netrc
Normal file
1
dockerfiles/netrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
machine git.z.xinu.tv login wathiede password gitgit
|
||||||
Loading…
x
Reference in New Issue
Block a user