Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile.console
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ COPY internal/ internal/
# Copy test certificates
COPY internal/certs/files/test internal/certs/files
COPY protogen/ protogen/
COPY .env.${MINEXUS_ENV} ./.env.${MINEXUS_ENV}

# Build the console binary
RUN CGO_ENABLED=0 GOOS=linux GOFLAGS="-ldflags=-s -ldflags=-w" go build -o console ./cmd/console/
Expand All @@ -39,6 +38,9 @@ RUN groupadd dop && \
RUN mkdir -p /app
WORKDIR /app

ARG MINEXUS_ENV
COPY .env.${MINEXUS_ENV} ./.env.${MINEXUS_ENV}

# Copy the binary from builder
COPY --from=builder /app/console /app/console

Expand Down
4 changes: 3 additions & 1 deletion Dockerfile.minion
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ COPY internal/ internal/
# Copy test certificates
COPY internal/certs/files/test internal/certs/files
COPY protogen/ protogen/
COPY .env.${MINEXUS_ENV} ./.env.${MINEXUS_ENV}

# Build the minion binary
RUN CGO_ENABLED=0 GOOS=linux GOFLAGS="-ldflags=-s -ldflags=-w" go build -o minion ./cmd/minion/
Expand All @@ -38,6 +37,9 @@ RUN groupadd dop && \
RUN mkdir -p /app
WORKDIR /app

ARG MINEXUS_ENV
COPY .env.${MINEXUS_ENV} ./.env.${MINEXUS_ENV}

# Copy the binary from builder
COPY --from=builder /app/minion /app/minion

Expand Down
4 changes: 3 additions & 1 deletion Dockerfile.nexus
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ COPY internal/ internal/
# Copy test certificates
COPY internal/certs/files/test internal/certs/files
COPY protogen/ protogen/
COPY .env.${MINEXUS_ENV} ./.env.${MINEXUS_ENV}

# Build the nexus binary
RUN CGO_ENABLED=0 GOOS=linux GOFLAGS="-ldflags=-s -ldflags=-w" go build -o nexus ./cmd/nexus/
Expand All @@ -39,6 +38,9 @@ RUN groupadd dop && \
RUN mkdir -p /app
WORKDIR /app

ARG MINEXUS_ENV
COPY .env.${MINEXUS_ENV} ./.env.${MINEXUS_ENV}

# Copy the binary from builder
COPY --from=builder /app/nexus /app/nexus

Expand Down
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ services:
build:
context: .
dockerfile: Dockerfile.nexus
args:
MINEXUS_ENV: ${MINEXUS_ENV:-test}
container_name: nexus_server
env_file:
- .env.${MINEXUS_ENV:-test}
Expand Down Expand Up @@ -64,6 +66,8 @@ services:
build:
context: .
dockerfile: Dockerfile.minion
args:
MINEXUS_ENV: ${MINEXUS_ENV:-test}
container_name: minion
env_file:
- .env.${MINEXUS_ENV:-test}
Expand All @@ -89,6 +93,8 @@ services:
build:
context: .
dockerfile: Dockerfile.console
args:
MINEXUS_ENV: ${MINEXUS_ENV:-test}
container_name: minexus_console
env_file:
- .env.${MINEXUS_ENV:-test}
Expand Down
Loading