Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(backend): Remove distillery for releases #813

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
update dockerfile to use new release command
Signed-off-by: David van der Spek <[email protected]>
davidspek committed Mar 2, 2023
commit bedc1396a1210ab2b1fd2e2c711502f461b896b0
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -31,11 +31,8 @@ RUN mix do deps.get, compile

RUN \
mkdir -p /opt/built && \
mix distillery.release --name ${APP_NAME} && \
cp _build/${MIX_ENV}/rel/${APP_NAME}/releases/*/${APP_NAME}.tar.gz /opt/built && \
cd /opt/built && \
tar -xzf ${APP_NAME}.tar.gz && \
rm ${APP_NAME}.tar.gz
mix release ${APP_NAME} && \
mv _build/${MIX_ENV}/rel/${APP_NAME}/releases/*/* /opt/built

FROM alpine:3.17.0 as tools