Skip to content

Commit

Permalink
fix: Dockerfile and dockerhub secrets in repo
Browse files Browse the repository at this point in the history
  • Loading branch information
cao7113 committed Jul 10, 2024
1 parent 19f5e93 commit cd314bb
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ RUN apt-get update -y && apt-get install -y build-essential git \
# prepare build dir
WORKDIR /app

RUN echo GIT_COMMIT_INFO=${GIT_COMMIT_INFO} > commit_info
RUN echo GIT_COMMIT_INFO1=${GIT_COMMIT_INFO1}

# install hex + rebar
RUN mix local.hex --force && \
mix local.rebar --force
Expand Down Expand Up @@ -75,9 +72,6 @@ RUN mix release
# the compiled release and other runtime necessities
FROM ${RUNNER_IMAGE}

ENV GIT_COMMIT_INFO=${GIT_COMMIT_INFO}
ENV GIT_COMMIT_INFO1=${GIT_COMMIT_INFO1}

RUN apt-get update -y && \
apt-get install -y libstdc++6 openssl libncurses5 locales ca-certificates \
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
Expand All @@ -91,8 +85,6 @@ ENV LC_ALL en_US.UTF-8

WORKDIR "/app"
RUN chown nobody /app
RUN echo GIT_COMMIT_INFO="$GIT_COMMIT_INFO" > commit_info
COPY --from=builder --chown=nobody:root /app/commit_info0 ./

# set runner ENV
ENV MIX_ENV="prod"
Expand Down

0 comments on commit cd314bb

Please sign in to comment.