forked from sozu-proxy/sozu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.git | ||
.gitignore | ||
.travis.yml | ||
target | ||
LICENSE | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
FROM alpine:edge | ||
|
||
#COPY ["Cargo.*", "/source/"] | ||
#COPY bin/ /source/bin/ | ||
#COPY command/ /source/command/ | ||
#COPY lib/ /source/lib/ | ||
#COPY ctl/ /source/ctl/ | ||
COPY . /source/ | ||
COPY bin/config.toml /etc/sozu/sozu.toml | ||
|
||
RUN apk add --no-cache --virtual .build-dependencies \ | ||
cargo \ | ||
g++ \ | ||
gcc \ | ||
musl-dev \ | ||
rust && \ | ||
apk add --no-cache openssl-dev llvm-libunwind && \ | ||
cd /source && cd ctl && \ | ||
cargo build --release && \ | ||
cd ../bin && \ | ||
cargo build --release && \ | ||
cp /source/target/release/sozu /bin/sozu && \ | ||
cp /source/target/release/sozuctl /bin/sozuctl && \ | ||
cd / && \ | ||
apk del .build-dependencies && \ | ||
apk del && \ | ||
rm -rf /source && \ | ||
rm -rf /root/.cargo | ||
|
||
EXPOSE 80 | ||
EXPOSE 443 | ||
|
||
ENTRYPOINT ["/bin/sozu"] |