-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update program versions and remodel Dockerfile (#54)
- Loading branch information
1 parent
b597b53
commit 83a7fd8
Showing
3 changed files
with
24 additions
and
18 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 |
---|---|---|
@@ -1,16 +1,23 @@ | ||
FROM golang:1.9.6 AS build | ||
FROM golang:1.11.0-alpine AS build | ||
ADD . /src | ||
WORKDIR /src | ||
RUN go get -d -v -t | ||
RUN go test --cover ./... --run UnitTest | ||
RUN go build -v -o docker-flow-proxy | ||
RUN set -x \ | ||
&& apk add --update --no-cache --no-progress git g++ \ | ||
&& go get -d -v -t \ | ||
&& go test --cover ./... --run UnitTest \ | ||
&& go build -v -o docker-flow-proxy | ||
|
||
|
||
FROM haproxy:1.8.8-alpine | ||
MAINTAINER Viktor Farcic <[email protected]> | ||
FROM haproxy:1.8.13-alpine | ||
LABEL org.opencontainers.image.title="Docker Flow Proxy" \ | ||
org.opencontainers.image.description="Automated HAProxy Reverse Proxy for Docker" \ | ||
org.opencontainers.image.url="https://proxy.dockerflow.com" \ | ||
org.opencontainers.image.licenses="MIT" \ | ||
org.opencontainers.image.authors="Viktor Farcic <[email protected]>" \ | ||
org.opencontainers.image.source="https://github.com/docker-flow/docker-flow-proxy" | ||
|
||
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 | ||
RUN mkdir -p /cfg/tmpl /templates /certs /logs | ||
RUN apk --update --no-cache --no-progress add tini \ | ||
&& mkdir -p /cfg/tmpl /templates /certs /logs | ||
|
||
ENV CERTS="" \ | ||
CAPTURE_REQUEST_HEADER="" \ | ||
|
@@ -39,21 +46,20 @@ ENV CERTS="" \ | |
TIMEOUT_HTTP_REQUEST="5" TIMEOUT_HTTP_KEEP_ALIVE="15" TIMEOUT_CLIENT="20" TIMEOUT_CONNECT="5" TIMEOUT_QUEUE="30" TIMEOUT_SERVER="20" TIMEOUT_TUNNEL="3600" \ | ||
USERS="" \ | ||
SKIP_ADDRESS_VALIDATION="true" \ | ||
SSL_BIND_OPTIONS="no-sslv3" SSL_BIND_CIPHERS="ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS" | ||
SSL_BIND_OPTIONS="ssl-min-ver TLSv1.2 no-tls-tickets" \ | ||
SSL_BIND_CIPHERS="ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:EECDH+AESGCM:EDH+AESGCM" | ||
|
||
EXPOSE 80 | ||
EXPOSE 443 | ||
EXPOSE 8080 | ||
EXPOSE 80 \ | ||
443 \ | ||
8080 | ||
|
||
RUN apk --no-cache add tini | ||
ENTRYPOINT ["/sbin/tini", "-g", "--"] | ||
CMD ["docker-flow-proxy", "server"] | ||
HEALTHCHECK --interval=5s --start-period=3s --timeout=10s CMD check.sh | ||
|
||
COPY scripts/check.sh /usr/local/bin/check.sh | ||
RUN chmod +x /usr/local/bin/check.sh | ||
COPY errorfiles /errorfiles | ||
COPY haproxy.cfg /cfg/haproxy.cfg | ||
COPY haproxy.tmpl /cfg/tmpl/haproxy.tmpl | ||
COPY --from=build /src/docker-flow-proxy /usr/local/bin/docker-flow-proxy | ||
RUN chmod +x /usr/local/bin/docker-flow-proxy | ||
RUN chmod +x /usr/local/bin/docker-flow-proxy /usr/local/bin/check.sh |
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
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