-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gateway): avoid override of dhparam when volume is used for certi…
…ficates
- Loading branch information
1 parent
4714d18
commit 67c17f1
Showing
2 changed files
with
7 additions
and
3 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 |
---|---|---|
|
@@ -34,8 +34,10 @@ FROM base AS development | |
|
||
COPY --from=openresty/openresty:1.25.3.1-5-alpine-apk /usr/local/openresty /usr/local/openresty | ||
|
||
RUN mkdir /etc/shellhub-gateway | ||
|
||
RUN mkdir -p /var/run/openresty /etc/letsencrypt && \ | ||
curl -sSL https://ssl-config.mozilla.org/ffdhe2048.txt -o /etc/letsencrypt/dhparam.pem | ||
curl -sSL https://ssl-config.mozilla.org/ffdhe2048.txt -o /etc/shellhub-gateway/dhparam.pem | ||
|
||
RUN apk add --update openssl build-base | ||
RUN go install github.com/markbates/[email protected] && \ | ||
|
@@ -59,8 +61,10 @@ RUN apk add libgcc curl certbot certbot-nginx | |
|
||
COPY --from=openresty/openresty:1.25.3.1-5-alpine-apk /usr/local/openresty /usr/local/openresty | ||
|
||
RUN mkdir /etc/shellhub-gateway | ||
|
||
RUN mkdir -p /var/run/openresty /etc/letsencrypt && \ | ||
curl -sSL https://ssl-config.mozilla.org/ffdhe2048.txt -o /etc/letsencrypt/dhparam.pem | ||
curl -sSL https://ssl-config.mozilla.org/ffdhe2048.txt -o /etc/shellhub-gateway/dhparam.pem | ||
|
||
COPY --from=builder /go/src/github.com/shellhub-io/shellhub/gateway/gateway /gateway | ||
|
||
|
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