Skip to content

Commit

Permalink
Move ARG DEPLOY_ENVIRONMENT to second build stage
Browse files Browse the repository at this point in the history
  • Loading branch information
warrenchristian1telus committed Dec 18, 2024
1 parent a910087 commit 6edfce6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions GoLang.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
ARG GOLANG_FROM_IMAGE=golang:1.12
ARG UBUNTU_FROM_IMAGE=ubuntu:24.04
ARG DEPLOY_ENVIRONMENT="remote"

FROM ${GOLANG_FROM_IMAGE} AS builder

RUN go get github.com/RedisLabs/sentinel_tunnel

FROM ${UBUNTU_FROM_IMAGE}
ARG DEPLOY_ENVIRONMENT="remote"

COPY --from=builder /go/bin/sentinel_tunnel /usr/local/bin/
COPY ./config/redis/entrypoint /usr/local/bin
RUN mkdir /etc/sentinel_tunnel && \
Expand Down

0 comments on commit 6edfce6

Please sign in to comment.