mirror of
https://github.com/GeopJr/BLAHAJ.git
synced 2025-01-22 08:36:30 +01:00
c3b1707bdb
* 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>
10 lines
278 B
Docker
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" ]
|