Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
enrique committed Dec 6, 2021
1 parent 738eca6 commit c671c14
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM bitwalker/alpine-elixir-phoenix:1.12
RUN apk --no-cache --update add alpine-sdk gmp-dev automake libtool inotify-tools autoconf python3 file pango-dev jpeg-dev libjpeg-turbo-dev giflib-dev librsvg-dev

ENV GLIBC_REPO=https://github.com/sgerrand/alpine-pkg-glibc
ENV GLIBC_VERSION=2.34-r0
ENV GLIBC_VERSION=2.30-r0

RUN set -ex && \
apk --update add libstdc++ curl ca-certificates && \
Expand All @@ -25,9 +25,6 @@ ENV PORT=4000 \
MIX_ENV="prod" \
SECRET_KEY_BASE="RMgI4C1HSkxsEjdhtGMfwAHfyT6CKWXOgzCboJflfSm4jeAlic52io05KB6mqzc5"

# Install node
RUN apk add --update nodejs-current

# Cache elixir deps
ADD mix.exs mix.lock ./
ADD apps/block_scout_web/mix.exs ./apps/block_scout_web/
Expand All @@ -38,7 +35,7 @@ ADD apps/indexer/mix.exs ./apps/indexer/
RUN mix do deps.get, local.rebar --force, deps.compile

# Update base image npm
RUN npm install -g npm@latest
RUN npm install -g npm@7.24.1

# Cache npm deps before application code

Expand Down

0 comments on commit c671c14

Please sign in to comment.