BLAHAJ/Dockerfile
Will Fantom c3b1707bdb
feat: Docker Support 🐳 (#11)
* feat: added dockerfile and relvant docs

* feat: added ci to publish docker images

* chore: bumped all checkout actions to v4

* chore: removed unnecessary deps from build stage

* chore: changed build targets to amd64 and arm64 only

* chore: moved docker publish logic to push trigger

Switched the docker image build/publish pipeline event to a push event
on either a `v*` tag or to the main branch.

* fix: README

* feat: publish => docker

* feat: dont run on main push

lets only publish releases instead

---------

Co-authored-by: Evangelos Paterakis <evan@geopjr.dev>
2023-10-15 20:35:03 +03:00

10 lines
278 B
Docker

FROM --platform=linux/amd64 crystallang/crystal:latest-alpine as builder
WORKDIR /root/src
COPY . .
RUN shards build --production --no-debug --release -Dpreview_mt --static
FROM scratch
COPY --from=builder /root/src/bin/blahaj /usr/local/bin/blahaj
ENTRYPOINT [ "blahaj" ]