Move binaries to /usr/local/bin

This commit is contained in:
Dominic Grimm 2022-01-11 18:56:07 +01:00
parent 8ea685b2ff
commit d8621d15a7

View file

@ -29,9 +29,8 @@ RUN if [ "${BUILD_ENV}" = "development" ]; then \
shards build --static --release --no-debug --verbose -s -p -t; \
fi
FROM scratch as runner
WORKDIR /
COPY --from=micrate-builder /app/bin/micrate ./bin/micrate
COPY --from=builder /app/bin/mw ./bin/mw
COPY --from=micrate-builder /app/bin/micrate /usr/local/bin/micrate
COPY --from=builder /app/bin/mw /usr/local/bin/mw
COPY ./db ./db
EXPOSE 8080
CMD [ "mw" ]