-
-
Notifications
You must be signed in to change notification settings - Fork 434
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
1 parent
05d4fb1
commit d55dffc
Showing
2 changed files
with
16 additions
and
15 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 |
---|---|---|
|
@@ -10,6 +10,7 @@ on: | |
push: | ||
branches: | ||
- 'docker_updates' | ||
- 'master' | ||
tags: | ||
- "v*.*.*" | ||
|
||
|
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,26 +1,26 @@ | ||
#FROM ghcr.io/its-a-feature/mythic_server:v0.0.2.32 | ||
FROM ghcr.io/its-a-feature/mythic_server:v0.0.2.32 | ||
|
||
FROM itsafeaturemythic/mythic_go_base:latest | ||
#FROM itsafeaturemythic/mythic_go_base:latest | ||
|
||
WORKDIR /usr/src/app | ||
#WORKDIR /usr/src/app | ||
|
||
ARG GOPROXY=proxy.golang.org | ||
ARG GO111MODULE | ||
#ARG GOPROXY=proxy.golang.org | ||
#ARG GO111MODULE | ||
|
||
RUN go env -w GOPROXY=${GOPROXY} | ||
RUN go env -w GO111MODULE=${GO111MODULE} | ||
#RUN go env -w GOPROXY=${GOPROXY} | ||
#RUN go env -w GO111MODULE=${GO111MODULE} | ||
|
||
COPY ["src/", "."] | ||
#COPY ["src/", "."] | ||
|
||
RUN make build_final | ||
#RUN make build_final | ||
|
||
FROM alpine | ||
#FROM alpine | ||
|
||
COPY --from=0 /mythic_server /mythic_server | ||
#COPY --from=0 /mythic_server /mythic_server | ||
|
||
WORKDIR /usr/src/app | ||
#WORKDIR /usr/src/app | ||
|
||
HEALTHCHECK --interval=60s --timeout=10s --retries=5 --start-period=20s \ | ||
CMD wget -SqO - http://127.0.0.1:${MYTHIC_SERVER_PORT:-17443}/health || exit 1 | ||
#HEALTHCHECK --interval=60s --timeout=10s --retries=5 --start-period=20s \ | ||
# CMD wget -SqO - http://127.0.0.1:${MYTHIC_SERVER_PORT:-17443}/health || exit 1 | ||
|
||
CMD ["/bin/sh", "-c", "cp /mythic_server . && ./mythic_server" ] | ||
#CMD ["/bin/sh", "-c", "cp /mythic_server . && ./mythic_server" ] |