Skip to content

Commit

Permalink
getting ready for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Jan 28, 2024
1 parent 05d4fb1 commit d55dffc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
push:
branches:
- 'docker_updates'
- 'master'
tags:
- "v*.*.*"

Expand Down
30 changes: 15 additions & 15 deletions mythic-docker/Dockerfile
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" ]

0 comments on commit d55dffc

Please sign in to comment.