-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
11 changed files
with
78 additions
and
34 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
FROM nginx:stable-alpine | ||
FROM nginxinc/nginx-unprivileged:stable-alpine | ||
|
||
ENV TACTICAL_DIR /opt/tactical | ||
|
||
USER root | ||
|
||
RUN deluser --remove-home nginx \ | ||
&& addgroup -S nginx -g 1000 \ | ||
&& adduser -S -G nginx -u 1000 nginx | ||
|
||
RUN apk add --no-cache openssl bash | ||
|
||
RUN chown -R nginx:nginx /etc/nginx | ||
|
||
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"] | ||
|
||
COPY docker/containers/tactical-nginx/entrypoint.sh /docker-entrypoint.d/ | ||
RUN chmod +x /docker-entrypoint.d/entrypoint.sh | ||
|
||
EXPOSE 443 80 | ||
USER nginx | ||
|
||
EXPOSE 4443 8080 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,4 +57,4 @@ ENTRYPOINT ["/entrypoint.sh"] | |
|
||
WORKDIR ${TACTICAL_DIR}/api | ||
|
||
EXPOSE 80 443 8383 | ||
EXPOSE 8080 4443 8383 |
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