Skip to content

Commit

Permalink
build-artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Nov 16, 2023
1 parent d4daca8 commit c3bcb61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions docker/alpine.Dockerfile
@@ -1,5 +1,4 @@
ARG base_docker_image=alpine:3.17
FROM ${base_docker_image} as runtime
FROM alpine:3.17 as runtime

RUN \
apk add --update --no-cache --force-overwrite \
Expand All @@ -10,8 +9,8 @@ RUN \
# dev tools
make git

ARG crystal_targz
COPY ${crystal_targz} /tmp/crystal.tar.gz
ARG crystal_targz=\*.tar.gz
COPY --from=build-artifacts ${crystal_targz} /tmp/crystal.tar.gz

RUN \
tar -xz -C /usr --strip-component=1 -f /tmp/crystal.tar.gz \
Expand Down
5 changes: 2 additions & 3 deletions docker/ubuntu.Dockerfile
@@ -1,5 +1,4 @@
ARG base_docker_image=ubuntu:22.04
FROM ${base_docker_image} as runtime
FROM ubuntu:22.04 as runtime

RUN \
apt-get update && \
Expand All @@ -10,7 +9,7 @@ RUN \
libpcre3-dev libpcre2-dev libevent-dev libz-dev && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ARG crystal_targz=crystal.tar.gz
ARG crystal_targz=\*.tar.gz
COPY --from=build-artifacts ${crystal_targz} /tmp/crystal.tar.gz

RUN \
Expand Down

0 comments on commit c3bcb61

Please sign in to comment.