Skip to content

Commit

Permalink
Minor nonfunctional tweaks to the Elixir JSV image.
Browse files Browse the repository at this point in the history
Delete the test shell file, pin `alpine`, and make the 2-step build use
more or less the same structure as other images.

We should have some linting for images at some point to catch some of
these...
  • Loading branch information
Julian committed Jan 14, 2025
1 parent 84cb3a8 commit 48481a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 32 deletions.
14 changes: 6 additions & 8 deletions implementations/elixir-jsv/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Builder image ------------------------------------------------------------- #
FROM elixir:1.18-alpine
FROM elixir:1.18-alpine AS builder

WORKDIR /app
WORKDIR /opt/app

# Install Elixir package manager
RUN mix local.hex --force && mix local.rebar --force
Expand All @@ -17,10 +16,9 @@ COPY lib lib
ENV MIX_ENV=prod
RUN mix compile && mix release --overwrite

# Runner image -------------------------------------------------------------- #
FROM alpine
FROM alpine:3.21

RUN apk update && apk add --no-cache openssl ncurses-libs libstdc++
COPY --from=0 /app/_build/prod/rel/bowtie_jsv /bowtie_jsv
RUN apk add --no-cache openssl ncurses-libs libstdc++
COPY --from=builder /opt/app/_build/prod/rel/bowtie_jsv /opt/app/bowtie_jsv

ENTRYPOINT [ "/bowtie_jsv/bin/bowtie_jsv", "start" ]
ENTRYPOINT [ "/opt/app/bowtie_jsv/bin/bowtie_jsv", "start" ]
24 changes: 0 additions & 24 deletions implementations/elixir-jsv/test.sh

This file was deleted.

0 comments on commit 48481a1

Please sign in to comment.