Docker build for slideshow app.

This commit is contained in:
Bill Thiede 2020-03-14 13:37:02 -07:00
parent 2ee2a98c7d
commit 737b290cc0
5 changed files with 17 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
target
*/node_modules

11
Dockerfile Normal file
View 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
View File

@ -0,0 +1 @@
package="app/photosync"

2
dockerfiles/cargo-config Normal file
View File

@ -0,0 +1,2 @@
[net]
git-fetch-with-cli = true

1
dockerfiles/netrc Normal file
View File

@ -0,0 +1 @@
machine git.z.xinu.tv login wathiede password gitgit